Browse Source

Synchronization code

pull/40/head
sunkaixuan 1 year ago
parent
commit
7007e35818
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs

4
Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs

@ -660,6 +660,10 @@ namespace SqlSugar
string columnName = this.SqlBuilder.GetTranslationColumnName(columnInfo.DbColumnName);
tableName = this.SqlBuilder.GetTranslationTableName(tableName);
string dataType = columnInfo.DataType;
if (dataType.EqualCase("varchar")&&this.Context.CurrentConnectionConfig?.MoreSettings?.SqlServerCodeFirstNvarchar == true)
{
dataType = "nvarchar";
}
string dataSize = GetSize(columnInfo);
string nullType = columnInfo.IsNullable ? this.CreateTableNull : CreateTableNotNull;
string primaryKey = null;

Loading…
Cancel
Save