Friday, 4 April 2014

Update record in EF4?

Im newbie to Asp.NetMVC3.I am perplexing to transform my record
controlling EF4.Heres my formula for updating a record.[HttpPost] open
ActionResult Edit(Movie movies) { using(var db = new
AmsecDevTestEntities1()) {
db.Movies.Attach(db.Movies.Single(m => m.Id == movies.Id));
db.Movies. (movies); //Im stranded here how can i transform a record
} }I attempted to use db.Movies.ApplyCurrentValues(movies);.But im
removing an blunder observant that context doesnot exists here.Any
assistance will be appreciated.

No comments:

Post a Comment