- 补充 MapType,Column.MapType 类型映射,可将 enum 映射为 int/string 等 #19 #42;

- 优化 PostgreSQL jsonb 类型使用习惯;
This commit is contained in:
28810
2019-04-27 01:08:34 +08:00
parent 45b785f43b
commit aeee8cc34c
26 changed files with 14353 additions and 13 deletions

View File

@ -213,7 +213,7 @@ namespace FreeSql.Sqlite {
if (isIndent == false && tb.Primarys.Any()) {
sb.Append(" \r\n PRIMARY KEY (");
foreach (var tbcol in tb.Primarys) sb.Append(_commonUtils.QuoteSqlName(tbcol.Attribute.Name)).Append(", ");
sb.Remove(sb.Length - 2, 2).Append(")");
sb.Remove(sb.Length - 2, 2).Append("),");
}
foreach (var uk in tb.Uniques) {
sb.Append(" \r\n CONSTRAINT ").Append(_commonUtils.QuoteSqlName(uk.Key)).Append(" UNIQUE(");