mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 10:24:55 +08:00
Add db.UpdateableWithAttr(+0)
This commit is contained in:
@@ -28,6 +28,7 @@ namespace SqlSugar
|
||||
IInsertable<T> InsertableWithAttr<T>(T insertObj) where T : class, new();
|
||||
IInsertable<T> InsertableWithAttr<T>(List<T> insertObjs) where T : class, new();
|
||||
IUpdateable<T> UpdateableWithAttr<T>(T updateObj) where T : class, new();
|
||||
IUpdateable<T> UpdateableWithAttr<T>() where T : class, new();
|
||||
IUpdateable<T> UpdateableWithAttr<T>(List<T> updateObjs) where T : class, new();
|
||||
IDeleteable<T> DeleteableWithAttr<T>(T deleteObjs) where T : class, new();
|
||||
IDeleteable<T> DeleteableWithAttr<T>(List<T> deleteObjs) where T : class, new();
|
||||
|
||||
@@ -1288,6 +1288,10 @@ namespace SqlSugar
|
||||
{
|
||||
return this.GetConnectionWithAttr<T>().Updateable(updateObj);
|
||||
}
|
||||
public IUpdateable<T> UpdateableWithAttr<T>() where T : class, new()
|
||||
{
|
||||
return this.GetConnectionWithAttr<T>().Updateable<T>();
|
||||
}
|
||||
public IUpdateable<T> UpdateableWithAttr<T>(List<T> updateObjs) where T : class, new()
|
||||
{
|
||||
return this.GetConnectionWithAttr<T>().Updateable(updateObjs);
|
||||
|
||||
@@ -711,6 +711,12 @@ namespace SqlSugar
|
||||
{
|
||||
return ScopedContext.UpdateableWithAttr<T>(updateObj);
|
||||
}
|
||||
|
||||
public IUpdateable<T> UpdateableWithAttr<T>() where T : class, new()
|
||||
{
|
||||
return ScopedContext.UpdateableWithAttr<T>();
|
||||
}
|
||||
|
||||
public IUpdateable<T> UpdateableWithAttr<T>(List<T> updateObjs) where T : class, new()
|
||||
{
|
||||
return ScopedContext.UpdateableWithAttr<T>(updateObjs);
|
||||
|
||||
Reference in New Issue
Block a user