mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-20 23:19:36 +08:00
Update CreateTable sort
This commit is contained in:
parent
9d37e792de
commit
d79181a32a
@ -39,7 +39,8 @@ namespace SqlSugar
|
|||||||
IsNullable = item.IsNullable,
|
IsNullable = item.IsNullable,
|
||||||
DefaultValue = item.DefaultValue,
|
DefaultValue = item.DefaultValue,
|
||||||
ColumnDescription = item.ColumnDescription,
|
ColumnDescription = item.ColumnDescription,
|
||||||
Length = item.Length
|
Length = item.Length,
|
||||||
|
CreateTableFieldSort = item.CreateTableFieldSort
|
||||||
};
|
};
|
||||||
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)
|
||||||
|
@ -39,7 +39,8 @@ namespace SqlSugar
|
|||||||
IsNullable = item.IsNullable,
|
IsNullable = item.IsNullable,
|
||||||
DefaultValue = item.DefaultValue,
|
DefaultValue = item.DefaultValue,
|
||||||
ColumnDescription = item.ColumnDescription,
|
ColumnDescription = item.ColumnDescription,
|
||||||
Length = item.Length
|
Length = item.Length,
|
||||||
|
CreateTableFieldSort = item.CreateTableFieldSort
|
||||||
};
|
};
|
||||||
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)
|
||||||
|
@ -46,7 +46,8 @@ namespace SqlSugar
|
|||||||
DefaultValue = item.DefaultValue,
|
DefaultValue = item.DefaultValue,
|
||||||
ColumnDescription = item.ColumnDescription,
|
ColumnDescription = item.ColumnDescription,
|
||||||
Length = item.Length,
|
Length = item.Length,
|
||||||
DecimalDigits=item.DecimalDigits
|
DecimalDigits=item.DecimalDigits,
|
||||||
|
CreateTableFieldSort=item.CreateTableFieldSort
|
||||||
};
|
};
|
||||||
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)
|
||||||
|
@ -50,7 +50,8 @@ namespace SqlSugar
|
|||||||
IsNullable = item.IsNullable,
|
IsNullable = item.IsNullable,
|
||||||
DefaultValue = item.DefaultValue,
|
DefaultValue = item.DefaultValue,
|
||||||
ColumnDescription = item.ColumnDescription,
|
ColumnDescription = item.ColumnDescription,
|
||||||
Length = item.Length
|
Length = item.Length,
|
||||||
|
CreateTableFieldSort = item.CreateTableFieldSort
|
||||||
};
|
};
|
||||||
if (propertyType == UtilConstants.DecType)
|
if (propertyType == UtilConstants.DecType)
|
||||||
{
|
{
|
||||||
|
@ -61,7 +61,8 @@ namespace SqlSugar
|
|||||||
DefaultValue = item.DefaultValue,
|
DefaultValue = item.DefaultValue,
|
||||||
ColumnDescription = item.ColumnDescription,
|
ColumnDescription = item.ColumnDescription,
|
||||||
PropertyName=item.PropertyName,
|
PropertyName=item.PropertyName,
|
||||||
Length = item.Length
|
Length = item.Length,
|
||||||
|
CreateTableFieldSort = item.CreateTableFieldSort
|
||||||
};
|
};
|
||||||
if (propertyType == UtilConstants.DecType)
|
if (propertyType == UtilConstants.DecType)
|
||||||
{
|
{
|
||||||
|
@ -123,7 +123,8 @@ namespace SqlSugar
|
|||||||
IsNullable = item.IsNullable,
|
IsNullable = item.IsNullable,
|
||||||
DefaultValue = item.DefaultValue,
|
DefaultValue = item.DefaultValue,
|
||||||
ColumnDescription = item.ColumnDescription,
|
ColumnDescription = item.ColumnDescription,
|
||||||
Length = item.Length
|
Length = item.Length,
|
||||||
|
CreateTableFieldSort = item.CreateTableFieldSort
|
||||||
};
|
};
|
||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user