.Net 3.5

Currently Browsing Category '.Net 3.5'

Foreign Key relationships in Entity Framework

by Joseph on Jul 6th in .Net 3.5, C#, Entity Framework

I received the following error while trying to use Entity Framework to update an object. The property ‘AccessLevelID’ is part of the object’s key information and cannot be modified. The object is a User, who has an AccessLevel foreign key. The problem was in my code, which looked like this: user.FullName = FullName;user.LoginName = LoginName;user.Password […]

Powered By Wordpress Designed By Ridgey