mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Synchronization code
This commit is contained in:
@@ -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);
|
||||||
|
@@ -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),
|
||||||
|
@@ -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)
|
||||||
|
Reference in New Issue
Block a user