v1.0.1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user