Synchronization code

This commit is contained in:
sunkaixuan
2023-08-10 18:47:25 +08:00
parent 65429c9c12
commit af6e5f4558
3 changed files with 12 additions and 1 deletions

View File

@@ -41,6 +41,8 @@ namespace SqlSugar
DefaultValue = item.DefaultValue, DefaultValue = item.DefaultValue,
ColumnDescription = item.ColumnDescription, ColumnDescription = item.ColumnDescription,
Length = item.Length, Length = item.Length,
DecimalDigits= item.DecimalDigits,
Scale=item.DecimalDigits,
CreateTableFieldSort = item.CreateTableFieldSort CreateTableFieldSort = item.CreateTableFieldSort
}; };
GetDbType(item, propertyType, result); GetDbType(item, propertyType, result);

View File

@@ -136,6 +136,13 @@ namespace SqlSugar
new KeyValuePair<string, CSharpDataType>("timestamp with local time zone",CSharpDataType.DateTime), new KeyValuePair<string, CSharpDataType>("timestamp with local time zone",CSharpDataType.DateTime),
new KeyValuePair<string, CSharpDataType>("timestamp with time zone",CSharpDataType.DateTime), new KeyValuePair<string, CSharpDataType>("timestamp with time zone",CSharpDataType.DateTime),
new KeyValuePair<string, CSharpDataType>("timestamp with time zone",CSharpDataType.DateTime), new KeyValuePair<string, CSharpDataType>("timestamp with time zone",CSharpDataType.DateTime),
new KeyValuePair<string, CSharpDataType>("timestamp with local time zone",CSharpDataType.DateTimeOffset),
new KeyValuePair<string, CSharpDataType>("timestamp with time zone",CSharpDataType.DateTimeOffset),
new KeyValuePair<string, CSharpDataType>("timestamp with time zone",CSharpDataType.DateTimeOffset),
new KeyValuePair<string, CSharpDataType>("time",CSharpDataType.TimeSpan), new KeyValuePair<string, CSharpDataType>("time",CSharpDataType.TimeSpan),
new KeyValuePair<string, CSharpDataType>("float",CSharpDataType.@decimal), new KeyValuePair<string, CSharpDataType>("float",CSharpDataType.@decimal),

View File

@@ -40,7 +40,9 @@ namespace SqlSugar
DefaultValue = item.DefaultValue, DefaultValue = item.DefaultValue,
ColumnDescription = item.ColumnDescription, ColumnDescription = item.ColumnDescription,
Length = item.Length, Length = item.Length,
CreateTableFieldSort = item.CreateTableFieldSort CreateTableFieldSort = item.CreateTableFieldSort,
DecimalDigits = item.DecimalDigits,
Scale = item.DecimalDigits
}; };
GetDbType(item, propertyType, result); GetDbType(item, propertyType, result);
if (result.DataType.Equals("varchar", StringComparison.CurrentCultureIgnoreCase) && result.Length == 0) if (result.DataType.Equals("varchar", StringComparison.CurrentCultureIgnoreCase) && result.Length == 0)