Update UtilMethods.FieldNameSql()

This commit is contained in:
sunkaixuan
2024-07-12 16:52:14 +08:00
parent eb375582cb
commit 3d79a3ae3a
3 changed files with 7 additions and 2 deletions

View File

@@ -34,5 +34,6 @@ namespace SqlSugar
public static Type DynamicExpressionParserType;
public static object DynamicExpressionParsingConfig;
public static Action<ICacheService, string> CacheRemoveByLikeStringFunc { get; set; }
public static Guid TableQuerySqlKey { get; set; }
}
}

View File

@@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCore</id>
<version>5.1.4.162</version>
<version>5.1.4.163-preview02</version>
<authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>

View File

@@ -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)
{