Browse Source

-

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
e66cfc3aa5
  1. 3
      Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs

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

@ -239,6 +239,9 @@ namespace SqlSugar
string columnName = this.SqlBuilder.GetTranslationTableName(item.DbColumnName); string columnName = this.SqlBuilder.GetTranslationTableName(item.DbColumnName);
string dataType = item.DataType; string dataType = item.DataType;
string dataSize = item.Length > 0 ? string.Format("({0})", item.Length) : null; string dataSize = item.Length > 0 ? string.Format("({0})", item.Length) : null;
if (item.Length>4000|| item.Length==-1) {
dataSize = string.Format("({0})","max");
}
string nullType = item.IsNullable ? this.CreateTableNull : CreateTableNotNull; string nullType = item.IsNullable ? this.CreateTableNull : CreateTableNotNull;
string primaryKey = null; string primaryKey = null;
string identity = item.IsIdentity ? this.CreateTableIdentity : null; string identity = item.IsIdentity ? this.CreateTableIdentity : null;

Loading…
Cancel
Save