diff --git a/Src/Asp.Net/SqlSugar/SqlSugarClient.cs b/Src/Asp.Net/SqlSugar/SqlSugarClient.cs index 500906f9d..c4547a0ad 100644 --- a/Src/Asp.Net/SqlSugar/SqlSugarClient.cs +++ b/Src/Asp.Net/SqlSugar/SqlSugarClient.cs @@ -1300,6 +1300,10 @@ namespace SqlSugar { return this.GetConnectionWithAttr().Deleteable(deleteObject); } + public IDeleteable DeleteableWithAttr() where T : class, new() + { + return this.GetConnectionWithAttr().Deleteable(); + } public IDeleteable DeleteableWithAttr(List deleteObjects) where T : class, new() { return this.GetConnectionWithAttr().Deleteable(deleteObjects); diff --git a/Src/Asp.Net/SqlSugar/SqlSugarScope.cs b/Src/Asp.Net/SqlSugar/SqlSugarScope.cs index 330b4e5de..9db5ecd27 100644 --- a/Src/Asp.Net/SqlSugar/SqlSugarScope.cs +++ b/Src/Asp.Net/SqlSugar/SqlSugarScope.cs @@ -725,6 +725,10 @@ namespace SqlSugar { return ScopedContext.DeleteableWithAttr(deleteObj); } + public IDeleteable DeleteableWithAttr() where T : class, new() + { + return ScopedContext.DeleteableWithAttr(); + } public IDeleteable DeleteableWithAttr(List deleteObjs) where T : class, new() { return ScopedContext.DeleteableWithAttr(deleteObjs);