/// <summary> /// /// </summary> private void BuildColumn(ColumnInfo column) { ScriptBuilder.Append($"{column.GetMySqlName()}"); if (Table.Columns.IsLast(column)) { return; } ScriptBuilder.Append(Strings.Comma); ScriptBuilder.Append(Strings.WhiteSpace); }
/// <summary> /// /// </summary> /// <param name="column"></param> private void BuildColumn(ColumnInfo column) { ScriptBuilder.AppendLine(); ScriptBuilder.Append($"{column.GetMySqlName()} "); ScriptBuilder.Append(column.Type.GetColumnType()); if (column.Identity != null) { ScriptBuilder.Append(" AUTO_INCREMENT"); } BuildNullableInfo(column); ScriptBuilder.Append($" COMMENT '{column.Description}'"); ScriptBuilder.AppendIf(Columns.IsNotLast(column), Strings.Comma); }