diff --git a/Src/Asp.NetCore2/SqlSugar/Infrastructure/StaticConfig.cs b/Src/Asp.NetCore2/SqlSugar/Infrastructure/StaticConfig.cs index 27bac9b3a..901bf92ab 100644 --- a/Src/Asp.NetCore2/SqlSugar/Infrastructure/StaticConfig.cs +++ b/Src/Asp.NetCore2/SqlSugar/Infrastructure/StaticConfig.cs @@ -34,5 +34,6 @@ namespace SqlSugar public static Type DynamicExpressionParserType; public static object DynamicExpressionParsingConfig; public static Action CacheRemoveByLikeStringFunc { get; set; } + public static Guid TableQuerySqlKey { get; set; } } } diff --git a/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec b/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec index 772ae5d6b..047fa1041 100644 --- a/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec +++ b/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec @@ -2,7 +2,7 @@ SqlSugarCore - 5.1.4.162 + 5.1.4.163-preview02 sunkaixuan 果糖大数据科技 http://www.apache.org/licenses/LICENSE-2.0.html diff --git a/Src/Asp.NetCore2/SqlSugar/Utilities/UtilMethods.cs b/Src/Asp.NetCore2/SqlSugar/Utilities/UtilMethods.cs index 71624f365..d95093d86 100644 --- a/Src/Asp.NetCore2/SqlSugar/Utilities/UtilMethods.cs +++ b/Src/Asp.NetCore2/SqlSugar/Utilities/UtilMethods.cs @@ -1681,8 +1681,12 @@ namespace SqlSugar } public static string FieldNameSql() { + if (StaticConfig.TableQuerySqlKey!=null&& StaticConfig.TableQuerySqlKey!=Guid.Empty) + { + return $"[value=sql{StaticConfig.TableQuerySqlKey}]"; + } return $"[value=sql{UtilConstants.ReplaceKey}]"; - } + } internal static object TimeOnlyToTimeSpan(object value) {