This commit is contained in:
sunkaixuan
2017-08-21 13:34:26 +08:00
parent b37ef5e749
commit e66cfc3aa5

View File

@@ -239,6 +239,9 @@ namespace SqlSugar
string columnName = this.SqlBuilder.GetTranslationTableName(item.DbColumnName);
string dataType = item.DataType;
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 primaryKey = null;
string identity = item.IsIdentity ? this.CreateTableIdentity : null;