/// <summary> /// 删除 /// </summary> public override void EntityDelete() { AuthGrpRule rule = new AuthGrpRule(); AuthGrp entity = EntityGet(); rule.RDelete(entity); }
/// <summary> /// 删除 /// </summary> public override void EntityDelete() { if (txtID.Text.Trim() == "1") { throw new Exception("ID为1的权限不允许编辑"); } AuthGrpRule rule = new AuthGrpRule(); AuthGrp entity = EntityGet(); rule.RDelete(entity); }