mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Synchronization code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user