diff --git a/Src/Asp.NetCore2/SqlSugar/Entities/ConditionalModel.cs b/Src/Asp.NetCore2/SqlSugar/Entities/ConditionalModel.cs index 1da3ef455..1302d8e75 100644 --- a/Src/Asp.NetCore2/SqlSugar/Entities/ConditionalModel.cs +++ b/Src/Asp.NetCore2/SqlSugar/Entities/ConditionalModel.cs @@ -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] diff --git a/Src/Asp.NetCore2/SqlSugar/SqlSugarClient.cs b/Src/Asp.NetCore2/SqlSugar/SqlSugarClient.cs index 641a85c07..7b70991de 100644 --- a/Src/Asp.NetCore2/SqlSugar/SqlSugarClient.cs +++ b/Src/Asp.NetCore2/SqlSugar/SqlSugarClient.cs @@ -511,6 +511,12 @@ namespace SqlSugar dt.TableName = tableName; return this.Context.Storageable(dt); } + public StorageableDataTable Storageable(Dictionary dictionary, string tableName) + { + DataTable dt = this.Context.Utilities.DictionaryListToDataTable(new List>() { dictionary }); + dt.TableName = tableName; + return this.Context.Storageable(dt); + } public IStorageable Storageable(List dataList) where T : class, new() {