Example #1
0
 public static void Update(WebUser webUser)
 {
     using (MVCFormContext db = new MVCFormContext())
     {
         db.Entry(webUser).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
Example #2
0
 public void Update(TEntity entity)
 {
     using (MVCFormContext db = new MVCFormContext())
     {
         db.Entry(entity).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
 public static void Update(RootObject rootObject)
 {
     using (MVCFormContext db = new MVCFormContext())
     {
         db.Entry(rootObject).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
Example #4
0
 public static void Update(Field field)
 {
     using (MVCFormContext db = new MVCFormContext())
     {
         db.Entry(field).State = EntityState.Modified;
         db.SaveChanges();
     }
 }