Synchronization code

This commit is contained in:
sunkaixuan 2024-07-13 11:30:57 +08:00
parent 67e8aa7098
commit e94d908f15
2 changed files with 7 additions and 1 deletions

View File

@ -15,6 +15,7 @@ namespace SqlSugar
public const string CodeFirst_BigString = "varcharmax,longtext,text,clob";
public static string CodeFirst_MySqlCollate{get;set;}
public static string CodeFirst_MySqlTableEngine { get; set; }
public static Func<long> CustomSnowFlakeFunc;
public static Func<long> CustomSnowFlakeTimeErrorFunc;
@ -34,5 +35,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

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