Skip to content

Commit

Permalink
实体传参配置打开了可空,然后字段允许空时,参数可传入?
Browse files Browse the repository at this point in the history
  • Loading branch information
猿人易 committed Jul 15, 2024
1 parent cbd1e6a commit 935bf87
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions XCode/Code/EntityBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1804,6 +1804,13 @@ protected virtual Boolean BuildExtendFindAll(IDataColumn[] columns, Int32 index)

if (dc.DataType == typeof(Boolean))
type += "?";
else if (dc.DataType == typeof(String))
{
if (Option.Nullable && dc.Nullable)
{
type += "?";
}
}

ps[dc.CamelName()] = type;

Expand Down

0 comments on commit 935bf87

Please sign in to comment.