mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Update UtilMethods.FieldNameSql()
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
@@ -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>
|
||||
|
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user