mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Update UtilMethods.FieldNameSql()
This commit is contained in:
@@ -34,5 +34,6 @@ namespace SqlSugar
|
|||||||
public static Type DynamicExpressionParserType;
|
public static Type DynamicExpressionParserType;
|
||||||
public static object DynamicExpressionParsingConfig;
|
public static object DynamicExpressionParsingConfig;
|
||||||
public static Action<ICacheService, string> CacheRemoveByLikeStringFunc { get; set; }
|
public static Action<ICacheService, string> CacheRemoveByLikeStringFunc { get; set; }
|
||||||
|
public static Guid TableQuerySqlKey { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
<package >
|
<package >
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>SqlSugarCore</id>
|
<id>SqlSugarCore</id>
|
||||||
<version>5.1.4.162</version>
|
<version>5.1.4.163-preview02</version>
|
||||||
<authors>sunkaixuan</authors>
|
<authors>sunkaixuan</authors>
|
||||||
<owners>果糖大数据科技</owners>
|
<owners>果糖大数据科技</owners>
|
||||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||||
|
@@ -1681,8 +1681,12 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
public static string FieldNameSql()
|
public static string FieldNameSql()
|
||||||
{
|
{
|
||||||
|
if (StaticConfig.TableQuerySqlKey!=null&& StaticConfig.TableQuerySqlKey!=Guid.Empty)
|
||||||
|
{
|
||||||
|
return $"[value=sql{StaticConfig.TableQuerySqlKey}]";
|
||||||
|
}
|
||||||
return $"[value=sql{UtilConstants.ReplaceKey}]";
|
return $"[value=sql{UtilConstants.ReplaceKey}]";
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static object TimeOnlyToTimeSpan(object value)
|
internal static object TimeOnlyToTimeSpan(object value)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user