Skip to content

Commit 6ba216c

Browse files
committed
#284 default double with period at end generates c# compiler error. Thanks to mellamokb.
1 parent c2c6fc6 commit 6ba216c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

EntityFramework.Reverse.POCO.Generator/EF.Reverse.POCO.Core.ttinclude

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,8 @@
11941194
double d;
11951195
if(!double.TryParse(Default, out d))
11961196
Default = string.Empty;
1197+
if (Default.ToLowerInvariant().EndsWith("."))
1198+
Default += "0";
11971199
break;
11981200

11991201
case "float":

0 commit comments

Comments
 (0)