Add db.DeleteableWithAttr

This commit is contained in:
sunkaixuan
2022-06-30 14:33:03 +08:00
parent f7842c0994
commit 8a60b0f3cb
2 changed files with 8 additions and 0 deletions

View File

@@ -1300,6 +1300,10 @@ namespace SqlSugar
{
return this.GetConnectionWithAttr<T>().Deleteable(deleteObject);
}
public IDeleteable<T> DeleteableWithAttr<T>() where T : class, new()
{
return this.GetConnectionWithAttr<T>().Deleteable<T>();
}
public IDeleteable<T> DeleteableWithAttr<T>(List<T> deleteObjects) where T : class, new()
{
return this.GetConnectionWithAttr<T>().Deleteable(deleteObjects);

View File

@@ -725,6 +725,10 @@ namespace SqlSugar
{
return ScopedContext.DeleteableWithAttr<T>(deleteObj);
}
public IDeleteable<T> DeleteableWithAttr<T>() where T : class, new()
{
return ScopedContext.DeleteableWithAttr<T>();
}
public IDeleteable<T> DeleteableWithAttr<T>(List<T> deleteObjs) where T : class, new()
{
return ScopedContext.DeleteableWithAttr<T>(deleteObjs);