Exemplo n.º 1
0
 public void UpdateClubActivity(ClubActivity item)
 {
     using (var context = new StarTEDContext())
     {
         var exisiting = context.Entry(item);
         exisiting.State = System.Data.Entity.EntityState.Modified;
         context.SaveChanges();
     }
 }
Exemplo n.º 2
0
 public int Rentals_Update(Rentals item)
 {
     using (var context = new StarTEDContext())
     {
         //Staging
         context.Entry(item).State = System.Data.Entity.EntityState.Modified;
         //Commit and Feedback (rows affected)
         return(context.SaveChanges());
     }
 }