This commit is contained in:
454313500@qq.com
2021-03-20 21:56:15 +08:00
parent 2e5b991db0
commit 367f8f8830
16 changed files with 240 additions and 50 deletions

View File

@@ -11,6 +11,7 @@ namespace CC.Yi.IBLL
//得到全部实体
#endregion
IQueryable<T> GetAllEntities();
#region
//通过表达式得到实体
#endregion
@@ -36,11 +37,21 @@ namespace CC.Yi.IBLL
#endregion
T Add(T entity);
#region
//添加多个实体
#endregion
bool Add(IEnumerable<T> entities);
#region
//更新实体
#endregion
bool Update(T entity);
#region
//更新实体部分属性
#endregion
bool Update(T entity, params string[] propertyNames);
#region
//删除实体
#endregion
@@ -54,6 +65,11 @@ namespace CC.Yi.IBLL
#region
//通过id列表删除多个实体
#endregion
int DeleteList(List<int> ids);
bool Delete(IEnumerable<int> ids);
#region
//通过表达式删除实体
#endregion
bool Delete(Expression<Func<T, bool>> where);
}
}