Skip to content

Commit

Permalink
Fixed error in method "GetModelRegion".
Browse files Browse the repository at this point in the history
  • Loading branch information
unchase committed Feb 26, 2019
1 parent f1cb76d commit f6a4ef0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,11 @@

- Fixed error in method "GetFunctionMethodRegionWithSimpleOdataClient".

### Version 0.3.12:

*Minor fixes:*

- Fixed error in method "GetModelRegion".



Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ internal static string ToCodeStringType(this IEdmTypeReference edmTypeReference)
{
case var pt when pt.IsPrimitive():
result = $"global::System.{pt.PrimitiveKind()}";
if (pt.IsNullable)
if (pt.IsNullable && !pt.IsString())
result = $"Nullable<{result}>";
break;
case var pt when pt.IsCollection():
Expand Down

0 comments on commit f6a4ef0

Please sign in to comment.