May 08, 2009 11:28 AM|ricka6|LINK
>> I'm having the exact same problem when I mark a property as private
Changing the access level in the data model is the wrong approach. In general you should not modify the generated data model. How are you mapping columns to fields? If you want to hide FKs, use ScaffoldColumn(false).
>>on a OrderDetail class make the OrderId property private so it exposes just the Order instance instead.
That is the wrong approach. Making it private only breaks navigation.
>>make my primary keys readonly.
PKs are RO. Again, don't change the data model unless you have a good reason. You should be using the entity partial class with the proper attributes.