How to add data in database from edit page when table has - TopicsExpress



          

How to add data in database from edit page when table has composite primary key from MVC entity modal . kindly help Function Edit(ByVal moviesname As MoviesName, Optional ByVal Name As String = Nothing, Optional ByVal Cast As String = Nothing) As ActionResult If ModelState.IsValid Then moviesname.Name = Name moviesname.Cast = Cast db.Entry(moviesname).State = EntityState.Modified db.SaveChanges() Return RedirectToAction(Index) End If but this code give me below error . primary key colum is Name and Cast
Posted on: Mon, 10 Mar 2014 05:42:05 +0000

Trending Topics



Recently Viewed Topics




© 2015