Merge branch 'dev' of https://gitee.com/NewLifeX/NewLife.XCode
This commit is contained in:
commit
3ddb578e56
|
@ -991,7 +991,7 @@ public class EntityBuilder : ClassBuilder
|
|||
else if (mapName.DataType == typeof(String))
|
||||
WriteLine("public {3} {0} => {1}?.{2};", myName, name, mapName.Name, type);
|
||||
else
|
||||
WriteLine("public {3} {0} => {1} != null ? {1}.{2} : 0;", myName, name, mapName.Name, mapName.DataType.Name);
|
||||
WriteLine("public {3} {0} => {1} != null ? {1}.{2} : default;", myName, name, mapName.Name, mapName.DataType.Name);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2018,4 +2018,4 @@ public class EntityBuilder : ClassBuilder
|
|||
return false;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue