修复 pgsql Enum 类型 formatSql bug

This commit is contained in:
28810
2019-04-04 16:59:02 +08:00
parent 37aa5c613c
commit ed1a68a927
3 changed files with 8 additions and 5 deletions

View File

@ -385,7 +385,7 @@ namespace FreeSql.Internal {
}
if (isLazy) {
cscode.Append(" private bool __lazy__").Append(pnv.Name).AppendLine(" = false;")
cscode.Append(" public bool __lazy__").Append(pnv.Name).AppendLine(" = false;")
.Append(" public override ").Append(propTypeName).Append(" ").Append(pnv.Name).AppendLine(" {");
if (vp.Item2) { //get 重写
cscode.Append(" get {\r\n")
@ -460,7 +460,7 @@ namespace FreeSql.Internal {
}
if (isLazy) {
cscode.Append(" private bool __lazy__").Append(pnv.Name).AppendLine(" = false;")
cscode.Append(" public bool __lazy__").Append(pnv.Name).AppendLine(" = false;")
.Append(" public override ").Append(propTypeName).Append(" ").Append(pnv.Name).AppendLine(" {");
if (vp.Item2) { //get 重写
cscode.Append(" get {\r\n")
@ -550,7 +550,7 @@ namespace FreeSql.Internal {
}
if (isLazy) {
cscode.Append(" private bool __lazy__").Append(pnv.Name).AppendLine(" = false;")
cscode.Append(" public bool __lazy__").Append(pnv.Name).AppendLine(" = false;")
.Append(" public override ").Append(propTypeName).Append(" ").Append(pnv.Name).AppendLine(" {");
if (vp.Item2) { //get 重写
cscode.Append(" get {\r\n")