Update Unique keys in Entity Framework -
i have 1 view , 1 of fields email (uk-unique key).
when user login in web system , update email. happens 1 problem can't change email.
after appears message:"the property part of object's key information , cannot modified"
i don't think can or should update unique key fields. have considered making integer identity field unique key user, email address modified?
you can still enforce uniqueness of email field adding additional constraint in database, or through business logic.
Comments
Post a Comment