Monday, August 1, 2011

Update on ASP.NET MVC checkbox list on EF

Regarding Using checkbox list on ASP.NET MVC with Entity Framework 4.1

The ConcurrencyCheck attribute is replaced with Timestamp attribute. Using Timestamp attribute, we will not need the Unchanged work-around anymore:

db.Entry(movie).Property("Version").OriginalValue = input.TheMovie.Version;
// db.Entry(movie).State = System.Data.EntityState.Unchanged; // not needed anymore when using Timestamp attribute

No comments:

Post a Comment