/// <summary> /// 删除实体 /// </summary> /// <param name="entity"></param> /// <param name="isSave"></param> /// <returns></returns> public int DeleteEntity(T entity, bool isSave) { DBService.DeleteEntity(entity); if (isSave) { return(SaveChanges()); } return(0); }