Browse Source

Update CreateTable sort

SqlSugar5
sunkaixuan 2 years ago
parent
commit
d79181a32a
  1. 3
      Src/Asp.NetCore2/SqlSugar/Realization/Dm/CodeFirst/DmCodeFirst.cs
  2. 3
      Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/CodeFirst/KdbndpCodeFirst.cs
  3. 3
      Src/Asp.NetCore2/SqlSugar/Realization/MySql/CodeFirst/MySqlCodeFirst.cs
  4. 3
      Src/Asp.NetCore2/SqlSugar/Realization/PostgreSQL/CodeFirst/PostgreSQLCodeFirst.cs
  5. 3
      Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/CodeFirst/QuestDBCodeFirst.cs
  6. 3
      Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/CodeFirst/SqliteCodeFirst.cs

3
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)

3
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)

3
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)

3
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)
{

3
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)
{

3
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)

Loading…
Cancel
Save