Browse Source

Add db.DeleteableWithAttr

pull/20/head
sunkaixuan 2 years ago
parent
commit
8a60b0f3cb
  1. 4
      Src/Asp.Net/SqlSugar/SqlSugarClient.cs
  2. 4
      Src/Asp.Net/SqlSugar/SqlSugarScope.cs

4
Src/Asp.Net/SqlSugar/SqlSugarClient.cs

@ -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);

4
Src/Asp.Net/SqlSugar/SqlSugarScope.cs

@ -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);

Loading…
Cancel
Save