mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 21:19:34 +08:00
Synchronization code
This commit is contained in:
parent
4e27a77799
commit
13383f0e91
@ -392,6 +392,10 @@ namespace SqlSugar
|
||||
string primaryKey = null;
|
||||
string identity = item.IsIdentity ? this.CreateTableIdentity : null;
|
||||
string addItem = string.Format(this.CreateTableColumn, this.SqlBuilder.GetTranslationColumnName(columnName), dataType, dataSize, nullType, primaryKey, identity);
|
||||
if (!string.IsNullOrEmpty(item.ColumnDescription))
|
||||
{
|
||||
addItem += "COMMENT '"+item.ColumnDescription.ToSqlFilter()+"' ";
|
||||
}
|
||||
columnArray.Add(addItem);
|
||||
}
|
||||
string tableString = string.Format(this.CreateTableSql, this.SqlBuilder.GetTranslationTableName(tableName), string.Join(",\r\n", columnArray));
|
||||
|
@ -394,7 +394,7 @@ namespace SqlSugar
|
||||
string addItem = string.Format(this.CreateTableColumn, this.SqlBuilder.GetTranslationColumnName(columnName), dataType, dataSize, nullType, primaryKey, identity);
|
||||
if (!string.IsNullOrEmpty(item.ColumnDescription))
|
||||
{
|
||||
addItem += "COMMENT '"+item.ColumnDescription+"' ";
|
||||
addItem += "COMMENT '"+item.ColumnDescription.ToSqlFilter()+"' ";
|
||||
}
|
||||
columnArray.Add(addItem);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user