Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property set method not found exception when PK has no setter #13

Open
risogolo opened this issue Jan 16, 2025 · 1 comment
Open

Property set method not found exception when PK has no setter #13

risogolo opened this issue Jan 16, 2025 · 1 comment

Comments

@risogolo
Copy link

I have an Entity where I rely on DB engine to autoincrement PK as int, therefore I do not have setter on such PK

I have tried to use backing field on PK
I have tried not to have setter at all on PK
I have tried to have private setter on PK

All of these did not work and threw System.ArgumentException : Property set method not found.

@HenkKin
Copy link
Owner

HenkKin commented Jan 21, 2025

@risogolo please make an dotnetfiddle example to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants