mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-27 03:09:34 +08:00
Add Obsolete
This commit is contained in:
@@ -30,6 +30,8 @@ namespace OrmTest
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//insert or update
|
||||||
|
var x1 = db.Storageable<Order>(new Order() { Id = 1, Name = "jack" }).ExecuteUpdateOrInsert();
|
||||||
|
|
||||||
//insert or update
|
//insert or update
|
||||||
var x= db.Storageable<Order>(new Order() { Id=1, Name="jack" }).ToStorage();
|
var x= db.Storageable<Order>(new Order() { Id=1, Name="jack" }).ToStorage();
|
||||||
|
|||||||
@@ -360,11 +360,13 @@ namespace SqlSugar
|
|||||||
Check.Exception(typeof(T).FullName.Contains("System.Collections.Generic.List`"), " need where T: class, new() ");
|
Check.Exception(typeof(T).FullName.Contains("System.Collections.Generic.List`"), " need where T: class, new() ");
|
||||||
return this.Context.Storageable(new List<T> { data});
|
return this.Context.Storageable(new List<T> { data});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Obsolete("use Storageable")]
|
||||||
public ISaveable<T> Saveable<T>(List<T> saveObjects) where T : class, new()
|
public ISaveable<T> Saveable<T>(List<T> saveObjects) where T : class, new()
|
||||||
{
|
{
|
||||||
return this.Context.Saveable<T>(saveObjects);
|
return this.Context.Saveable<T>(saveObjects);
|
||||||
}
|
}
|
||||||
|
[Obsolete("use Storageable")]
|
||||||
public ISaveable<T> Saveable<T>(T saveObject) where T : class, new()
|
public ISaveable<T> Saveable<T>(T saveObject) where T : class, new()
|
||||||
{
|
{
|
||||||
return this.Context.Saveable(saveObject);
|
return this.Context.Saveable(saveObject);
|
||||||
|
|||||||
@@ -436,11 +436,13 @@ namespace SqlSugar
|
|||||||
ScopedContext.RollbackTran();
|
ScopedContext.RollbackTran();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[Obsolete("use Storageable")]
|
||||||
public ISaveable<T> Saveable<T>(List<T> saveObjects) where T : class, new()
|
public ISaveable<T> Saveable<T>(List<T> saveObjects) where T : class, new()
|
||||||
{
|
{
|
||||||
return ScopedContext.Saveable(saveObjects);
|
return ScopedContext.Saveable(saveObjects);
|
||||||
}
|
}
|
||||||
|
[Obsolete("use Storageable")]
|
||||||
public ISaveable<T> Saveable<T>(T saveObject) where T : class, new()
|
public ISaveable<T> Saveable<T>(T saveObject) where T : class, new()
|
||||||
{
|
{
|
||||||
return ScopedContext.Saveable(saveObject);
|
return ScopedContext.Saveable(saveObject);
|
||||||
|
|||||||
Reference in New Issue
Block a user