mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Update CreateTable sort
This commit is contained in:
@@ -39,7 +39,8 @@ namespace SqlSugar
|
||||
IsNullable = item.IsNullable,
|
||||
DefaultValue = item.DefaultValue,
|
||||
ColumnDescription = item.ColumnDescription,
|
||||
Length = item.Length
|
||||
Length = item.Length,
|
||||
CreateTableFieldSort = item.CreateTableFieldSort
|
||||
};
|
||||
GetDbType(item, propertyType, result);
|
||||
if (result.DataType.Equals("varchar", StringComparison.CurrentCultureIgnoreCase) && result.Length == 0)
|
||||
|
@@ -39,7 +39,8 @@ namespace SqlSugar
|
||||
IsNullable = item.IsNullable,
|
||||
DefaultValue = item.DefaultValue,
|
||||
ColumnDescription = item.ColumnDescription,
|
||||
Length = item.Length
|
||||
Length = item.Length,
|
||||
CreateTableFieldSort = item.CreateTableFieldSort
|
||||
};
|
||||
GetDbType(item, propertyType, result);
|
||||
if (result.DataType.Equals("varchar", StringComparison.CurrentCultureIgnoreCase) && result.Length == 0)
|
||||
|
@@ -46,7 +46,8 @@ namespace SqlSugar
|
||||
DefaultValue = item.DefaultValue,
|
||||
ColumnDescription = item.ColumnDescription,
|
||||
Length = item.Length,
|
||||
DecimalDigits=item.DecimalDigits
|
||||
DecimalDigits=item.DecimalDigits,
|
||||
CreateTableFieldSort=item.CreateTableFieldSort
|
||||
};
|
||||
GetDbType(item, propertyType, result);
|
||||
if (result.DataType.Equals("varchar", StringComparison.CurrentCultureIgnoreCase) && result.Length == 0)
|
||||
|
@@ -50,7 +50,8 @@ namespace SqlSugar
|
||||
IsNullable = item.IsNullable,
|
||||
DefaultValue = item.DefaultValue,
|
||||
ColumnDescription = item.ColumnDescription,
|
||||
Length = item.Length
|
||||
Length = item.Length,
|
||||
CreateTableFieldSort = item.CreateTableFieldSort
|
||||
};
|
||||
if (propertyType == UtilConstants.DecType)
|
||||
{
|
||||
|
@@ -61,7 +61,8 @@ namespace SqlSugar
|
||||
DefaultValue = item.DefaultValue,
|
||||
ColumnDescription = item.ColumnDescription,
|
||||
PropertyName=item.PropertyName,
|
||||
Length = item.Length
|
||||
Length = item.Length,
|
||||
CreateTableFieldSort = item.CreateTableFieldSort
|
||||
};
|
||||
if (propertyType == UtilConstants.DecType)
|
||||
{
|
||||
|
@@ -123,7 +123,8 @@ namespace SqlSugar
|
||||
IsNullable = item.IsNullable,
|
||||
DefaultValue = item.DefaultValue,
|
||||
ColumnDescription = item.ColumnDescription,
|
||||
Length = item.Length
|
||||
Length = item.Length,
|
||||
CreateTableFieldSort = item.CreateTableFieldSort
|
||||
};
|
||||
GetDbType(item, propertyType, result);
|
||||
if (result.DataType.Equals("varchar", StringComparison.CurrentCultureIgnoreCase) && result.Length == 0)
|
||||
|
Reference in New Issue
Block a user