Entity Framework insert error ("The Version field is required.")

Posted by Graham on Stack Overflow See other posts from Stack Overflow or by Graham
Published on 2010-05-18T14:08:35Z Indexed on 2010/05/18 14:10 UTC
Read the original article Hit count: 247

I am using Silverlight 4 and RIA services. When I try to insert into my database, I get the following error:

"Submit operation failed validation. Please inspect Entity.ValidationErrors for each entity in EntitiesInError for more information."

Upon inspecting the ValidationErrors, I see:

"The Version field is required."

Isn't the Version field updated and maintained by the framework? If so, why is it null? If not, how am I supposed to set it?

© Stack Overflow or respective owner

Related posts about silverlight-4.0

Related posts about ria-services