mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 18:59:35 +08:00
Add Storageable(IList<T>)
This commit is contained in:
parent
b6920546c5
commit
bb77c25cd8
@ -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();
|
||||
|
@ -568,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());
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user