This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have a simple webforms page containing an entity. When I edit the entity and run TryUpdateModel I get the following error:
I'm using webforms so I can't just exclude the Id column from the TryUpdateModel. Update code behind:
Control Code:
|
|
|
You will want to use an overload of TryUpdateModel specifying Id in the excluded properties list. e.g. http://msdn.microsoft.com/en-us/library/dd492957(v=vs.118).aspx The Id property cannot be assigned to directly.
|
|