diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/Dm/CodeFirst/DmCodeFirst.cs b/Src/Asp.NetCore2/SqlSugar/Realization/Dm/CodeFirst/DmCodeFirst.cs index bd1f10548..abc6f3d6b 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/Dm/CodeFirst/DmCodeFirst.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/Dm/CodeFirst/DmCodeFirst.cs @@ -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) diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/CodeFirst/KdbndpCodeFirst.cs b/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/CodeFirst/KdbndpCodeFirst.cs index 95346fa10..88f9daf6f 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/CodeFirst/KdbndpCodeFirst.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/CodeFirst/KdbndpCodeFirst.cs @@ -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) diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/MySql/CodeFirst/MySqlCodeFirst.cs b/Src/Asp.NetCore2/SqlSugar/Realization/MySql/CodeFirst/MySqlCodeFirst.cs index 1b2652dbb..06097b662 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/MySql/CodeFirst/MySqlCodeFirst.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/MySql/CodeFirst/MySqlCodeFirst.cs @@ -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) diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/PostgreSQL/CodeFirst/PostgreSQLCodeFirst.cs b/Src/Asp.NetCore2/SqlSugar/Realization/PostgreSQL/CodeFirst/PostgreSQLCodeFirst.cs index 0b4e5f636..d31bf6686 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/PostgreSQL/CodeFirst/PostgreSQLCodeFirst.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/PostgreSQL/CodeFirst/PostgreSQLCodeFirst.cs @@ -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) { diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/CodeFirst/QuestDBCodeFirst.cs b/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/CodeFirst/QuestDBCodeFirst.cs index ca2600bc6..cdc51e432 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/CodeFirst/QuestDBCodeFirst.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/CodeFirst/QuestDBCodeFirst.cs @@ -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) { diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/CodeFirst/SqliteCodeFirst.cs b/Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/CodeFirst/SqliteCodeFirst.cs index 7716cb898..217e0431d 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/CodeFirst/SqliteCodeFirst.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/CodeFirst/SqliteCodeFirst.cs @@ -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)