/// <summary> /// 删除 /// </summary> /// <param name="userCode"></param> /// <returns></returns> public int Delete(string userCode) { AdminEntity entity = new AdminEntity(); entity.IsDelete = (int)EIsDelete.Deleted; entity.IncludeIsDelete(true); entity.Where(a => a.UserCode == userCode); int line = this.Admin.Update(entity); return(line); }
/// <summary> /// 删除用户 /// </summary> /// <param name="list"></param> /// <returns></returns> public int Delete(IEnumerable <string> list) { AdminEntity entity = new AdminEntity(); entity.IsDelete = (int)EIsDelete.Deleted; entity.UpdateTime = DateTime.Now; entity.IncludeIsDelete(true) .IncludeUpdateTime(true); entity.Where(a => a.CompanyID == CompanyID) .And("UserNum", ECondition.In, list.ToArray()); int line = this.Admin.Update(entity); return(line); }