mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-23 13:21:59 +08:00
Add Storageable(IList<T>)
This commit is contained in:
@@ -1056,6 +1056,10 @@ namespace SqlSugar
|
|||||||
result.Builder = sqlBuilder;
|
result.Builder = sqlBuilder;
|
||||||
return result;
|
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()
|
public IStorageable<T> Storageable<T>(T data) where T : class, new()
|
||||||
{
|
{
|
||||||
return Storageable(new List<T>() { data });
|
return Storageable(new List<T>() { data });
|
||||||
|
|||||||
@@ -619,7 +619,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return ScopedContext.Storageable(dataList);
|
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()
|
public IStorageable<T> Storageable<T>(T data) where T : class, new()
|
||||||
{
|
{
|
||||||
return ScopedContext.Storageable(data);
|
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> saveList) where T : class, new();
|
||||||
GridSaveProvider<T> GridSave<T>(List<T> oldList,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>(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(List<Dictionary<string, object>> dictionaryList, string tableName);
|
||||||
StorageableDataTable Storageable(Dictionary<string, object> dictionary, string tableName);
|
StorageableDataTable Storageable(Dictionary<string, object> dictionary, string tableName);
|
||||||
IStorageable<T> Storageable<T>(List<T> dataList) where T : class, new();
|
IStorageable<T> Storageable<T>(List<T> dataList) where T : class, new();
|
||||||
|
|||||||
@@ -568,6 +568,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return this.Context.Storageable(dataList);
|
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()
|
public IStorageable<T> Storageable<T>(T[] dataList) where T : class, new()
|
||||||
{
|
{
|
||||||
return this.Context.Storageable(dataList?.ToList());
|
return this.Context.Storageable(dataList?.ToList());
|
||||||
|
|||||||
@@ -613,7 +613,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return ScopedContext.Storageable(dataList);
|
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()
|
public IStorageable<T> Storageable<T>(T data) where T : class, new()
|
||||||
{
|
{
|
||||||
return ScopedContext.Storageable(data);
|
return ScopedContext.Storageable(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user