mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-23 13:21:59 +08:00
Update QuestDb CodeFirst Json default type
This commit is contained in:
@@ -70,6 +70,10 @@ namespace SqlSugar
|
||||
result.DecimalDigits = item.DecimalDigits;
|
||||
}
|
||||
GetDbType(item, propertyType, result);
|
||||
if (item.IsJson)
|
||||
{
|
||||
result.DataType = "string";
|
||||
}
|
||||
if (result.DataType.Equals("varchar", StringComparison.CurrentCultureIgnoreCase) && result.Length == 0)
|
||||
{
|
||||
result.Length = 1;
|
||||
|
||||
Reference in New Issue
Block a user