|
|
@ -341,6 +341,10 @@ namespace SqlSugar.MySqlConnector |
|
|
|
{ |
|
|
|
if (item.ColumnDescription != null) |
|
|
|
{ |
|
|
|
if (item.UnderType == UtilConstants.GuidType && item.Length == 0) |
|
|
|
{ |
|
|
|
item.Length = 36; |
|
|
|
} |
|
|
|
var mySqlCodeFirst = this.Context.CodeFirst as MySqlCodeFirst; |
|
|
|
string sql = GetUpdateColumnSql(entity.DbTableName, mySqlCodeFirst.GetEntityColumnToDbColumn(entity, entity.DbTableName, item))+" "+(item.IsIdentity? "AUTO_INCREMENT" : "")+" " + " COMMENT '" + item.ColumnDescription + "'"; |
|
|
|
db.Ado.ExecuteCommand(sql); |
|
|
|