Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Jan 1, 2025
2 parents 69b81e6 + 61b7d1b commit 3ddb578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XCode/Code/EntityBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ protected virtual void BuildMap()
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);
}
}

Expand Down Expand Up @@ -2018,4 +2018,4 @@ private Boolean IsDataTime(IDataColumn column)
return false;
}
#endregion
}
}

0 comments on commit 3ddb578

Please sign in to comment.