public new int Update(Model.ManagerRole entity) { var count = Db.Update(entity); UpdateCacheManagerRoleList(); return(count); }
public new int Insert(Model.ManagerRole T) { var count = Db.Insert(T); UpdateCacheManagerRoleList(); return(count); }
public new int Delete(Model.ManagerRole entity) { int count; using (DbTrans trans = Db.BeginTransaction()) { count = Db.Delete(trans, entity); Db.Delete <Model.ManagerRoleValue>(trans, p => p.RoleId == entity.Id); Db.Delete <Model.NavigationRoleValue>(trans, p => p.RoleId == entity.Id); trans.Commit(); } UpdateCacheManagerRoleList(); return(count); }