Esempio n. 1
0
 public void Remove(RoleSysMenuModel entity)
 {
     using (var db = new HXContext())
     {
         db.Entry <RoleSysMenuModel>(entity).State = System.Data.Entity.EntityState.Deleted;
         db.SaveChanges();
     }
 }
Esempio n. 2
0
 public void Save(RoleSysMenuModel entity)
 {
     using (var db = new HXContext())
     {
         db.Entry(entity).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
     }
 }
Esempio n. 3
0
 public void Add(RoleSysMenuModel entity)
 {
     using (var db = new HXContext())
     {
         db.RoleSysMenu.Add(entity);
         db.SaveChanges();
     }
 }