mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Add Obsolete
This commit is contained in:
parent
22ce44dcaa
commit
382f5262c9
@ -30,6 +30,8 @@ namespace OrmTest
|
||||
}
|
||||
});
|
||||
|
||||
//insert or update
|
||||
var x1 = db.Storageable<Order>(new Order() { Id = 1, Name = "jack" }).ExecuteUpdateOrInsert();
|
||||
|
||||
//insert or update
|
||||
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() ");
|
||||
return this.Context.Storageable(new List<T> { data});
|
||||
}
|
||||
|
||||
[Obsolete("use Storageable")]
|
||||
public ISaveable<T> Saveable<T>(List<T> saveObjects) where T : class, new()
|
||||
{
|
||||
return this.Context.Saveable<T>(saveObjects);
|
||||
}
|
||||
|
||||
[Obsolete("use Storageable")]
|
||||
public ISaveable<T> Saveable<T>(T saveObject) where T : class, new()
|
||||
{
|
||||
return this.Context.Saveable(saveObject);
|
||||
|
@ -436,11 +436,13 @@ namespace SqlSugar
|
||||
ScopedContext.RollbackTran();
|
||||
}
|
||||
|
||||
|
||||
[Obsolete("use Storageable")]
|
||||
public ISaveable<T> Saveable<T>(List<T> saveObjects) where T : class, new()
|
||||
{
|
||||
return ScopedContext.Saveable(saveObjects);
|
||||
}
|
||||
|
||||
[Obsolete("use Storageable")]
|
||||
public ISaveable<T> Saveable<T>(T saveObject) where T : class, new()
|
||||
{
|
||||
return ScopedContext.Saveable(saveObject);
|
||||
|
Loading…
Reference in New Issue
Block a user