mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Synchronization code
This commit is contained in:
@@ -1056,6 +1056,10 @@ namespace SqlSugar
|
||||
result.Builder = sqlBuilder;
|
||||
return result;
|
||||
}
|
||||
public IStorageable<T> Storageable<T>(IList<T> dataList) where T : class, new()
|
||||
{
|
||||
return Storageable(dataList?.ToList());
|
||||
}
|
||||
public IStorageable<T> Storageable<T>(T data) where T : class, new()
|
||||
{
|
||||
return Storageable(new List<T>() { data });
|
||||
|
@@ -619,7 +619,10 @@ namespace SqlSugar
|
||||
{
|
||||
return ScopedContext.Storageable(dataList);
|
||||
}
|
||||
|
||||
public IStorageable<T> Storageable<T>(IList<T> dataList) where T : class, new()
|
||||
{
|
||||
return ScopedContext.Storageable(dataList?.ToList());
|
||||
}
|
||||
public IStorageable<T> Storageable<T>(T data) where T : class, new()
|
||||
{
|
||||
return ScopedContext.Storageable(data);
|
||||
|
@@ -150,6 +150,7 @@ namespace SqlSugar
|
||||
GridSaveProvider<T> GridSave<T>(List<T> saveList) where T : class, new();
|
||||
GridSaveProvider<T> GridSave<T>(List<T> oldList,List<T> saveList) where T : class, new();
|
||||
IStorageable<T> Storageable<T>(T[] dataList) where T : class, new();
|
||||
IStorageable<T> Storageable<T>(IList<T> dataList) where T : class, new();
|
||||
StorageableDataTable Storageable(List<Dictionary<string, object>> dictionaryList, string tableName);
|
||||
StorageableDataTable Storageable(Dictionary<string, object> dictionary, string tableName);
|
||||
IStorageable<T> Storageable<T>(List<T> dataList) where T : class, new();
|
||||
|
@@ -174,6 +174,10 @@ namespace SqlSugar
|
||||
|
||||
public IInsertable<T> Insertable<T>(dynamic insertDynamicObject) where T : class, new()
|
||||
{
|
||||
if (insertDynamicObject is IList<T>)
|
||||
{
|
||||
return this.Context.Insertable<T>((insertDynamicObject as IList<T>).ToList());
|
||||
}
|
||||
return this.Context.Insertable<T>(insertDynamicObject);
|
||||
}
|
||||
|
||||
@@ -564,6 +568,10 @@ namespace SqlSugar
|
||||
{
|
||||
return this.Context.Storageable(dataList);
|
||||
}
|
||||
public IStorageable<T> Storageable<T>(IList<T> dataList) where T : class, new()
|
||||
{
|
||||
return this.Context.Storageable(dataList.ToList());
|
||||
}
|
||||
public IStorageable<T> Storageable<T>(T[] dataList) where T : class, new()
|
||||
{
|
||||
return this.Context.Storageable(dataList?.ToList());
|
||||
@@ -723,6 +731,10 @@ namespace SqlSugar
|
||||
|
||||
public IUpdateable<T> Updateable<T>(dynamic updateDynamicObject) where T : class, new()
|
||||
{
|
||||
if (updateDynamicObject is IList<T>)
|
||||
{
|
||||
return this.Context.Updateable<T>((updateDynamicObject as IList<T>).ToList());
|
||||
}
|
||||
return this.Context.Updateable<T>(updateDynamicObject);
|
||||
}
|
||||
|
||||
|
@@ -613,7 +613,10 @@ namespace SqlSugar
|
||||
{
|
||||
return ScopedContext.Storageable(dataList);
|
||||
}
|
||||
|
||||
public IStorageable<T> Storageable<T>(IList<T> dataList) where T : class, new()
|
||||
{
|
||||
return ScopedContext.Storageable(dataList?.ToList());
|
||||
}
|
||||
public IStorageable<T> Storageable<T>(T data) where T : class, new()
|
||||
{
|
||||
return ScopedContext.Storageable(data);
|
||||
|
Reference in New Issue
Block a user