Synchronization code

This commit is contained in:
sunkaixuan
2022-11-04 11:11:06 +08:00
parent 1e786b42ce
commit c2460a9429
2 changed files with 7 additions and 4 deletions

View File

@@ -28,10 +28,7 @@ namespace SqlSugar
public ICustomConditionalFunc CustomConditionalFunc { get; set; }
public string CustomP1 { get; set; }
public string CustomP2 { get; set; }
public string CustomP3 { get; set; }
public string CustomP4 { get; set; }
public dynamic CustomParameterValue { get; set; }
public ConditionalType ConditionalType { get; set; }
[Newtonsoft.Json.JsonIgnoreAttribute]

View File

@@ -511,6 +511,12 @@ namespace SqlSugar
dt.TableName = tableName;
return this.Context.Storageable(dt);
}
public StorageableDataTable Storageable(Dictionary<string, object> dictionary, string tableName)
{
DataTable dt = this.Context.Utilities.DictionaryListToDataTable(new List<Dictionary<string, object>>() { dictionary });
dt.TableName = tableName;
return this.Context.Storageable(dt);
}
public IStorageable<T> Storageable<T>(List<T> dataList) where T : class, new()
{