新增加删除重载方法
This commit is contained in:
parent
2c9fc950f3
commit
b6d759d1f8
@ -211,6 +211,10 @@ namespace ZR.Repository
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region delete
|
#region delete
|
||||||
|
public IDeleteable<T> Deleteable()
|
||||||
|
{
|
||||||
|
return Context.Deleteable<T>();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 删除表达式
|
/// 删除表达式
|
||||||
|
|||||||
@ -69,7 +69,7 @@ namespace ZR.Repository
|
|||||||
bool UseTran2(Action action);
|
bool UseTran2(Action action);
|
||||||
|
|
||||||
#region delete
|
#region delete
|
||||||
|
IDeleteable<T> Deleteable();
|
||||||
int Delete(Expression<Func<T, bool>> expression);
|
int Delete(Expression<Func<T, bool>> expression);
|
||||||
int Delete(object[] obj);
|
int Delete(object[] obj);
|
||||||
int Delete(object id);
|
int Delete(object id);
|
||||||
|
|||||||
@ -211,6 +211,14 @@ namespace ZR.Service
|
|||||||
|
|
||||||
#region delete
|
#region delete
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 删除
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public IDeleteable<T> Deleteable()
|
||||||
|
{
|
||||||
|
return baseRepository.Deleteable();
|
||||||
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 删除表达式
|
/// 删除表达式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -81,7 +81,7 @@ namespace ZR.Service
|
|||||||
bool UseTran2(Action action);
|
bool UseTran2(Action action);
|
||||||
|
|
||||||
#region delete
|
#region delete
|
||||||
|
IDeleteable<T> Deleteable();
|
||||||
int Delete(Expression<Func<T, bool>> expression);
|
int Delete(Expression<Func<T, bool>> expression);
|
||||||
int Delete(object[] obj);
|
int Delete(object[] obj);
|
||||||
int Delete(object id);
|
int Delete(object id);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user