-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cannot update alternate key entity framework core 1.0 rc-1 #4914
Comments
The update query is working fine in SQL server so it really is an Entity Framework issue. @ajcvickers |
@ar27111994 EF Core currently does not support changing the value of alternate keys. We do have #4073 tracking removing this restriction though. BTW it only needs to be an alternate key if you want it to be used as the target key of a relationship. If you just want a unique index, then use the |
Thank You so much. @rowanmiller |
I have a model where an object has a key that I set manually (SQL Server, not an identity column) |
I'm using entity framework 7 or core 1.0 for my new project. In the products table, ProductName column is set as an alternate key (unique constraint). The problem is that I'm unable to update this column in the database. Here are the details:
stackoverflow question
More details are in the commnts of the stackoverflow post.
The text was updated successfully, but these errors were encountered: