Skip to content

Commit c1cc2c5

Browse files
authored
Merge pull request #306 from phofman/features/filter_column
Accepting "null" value returned by UpdateColumn
2 parents c7c7dfa + ee9c54c commit c1cc2c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2855,7 +2855,7 @@ SELECT SERVERPROPERTY('Edition') AS Edition,
28552855
col = updateColumn(col, table);
28562856

28572857
// If PropertyType is empty, return null. Most likely ignoring a column due to legacy (such as OData not supporting spatial types)
2858-
if(string.IsNullOrEmpty(col.PropertyType))
2858+
if (col != null && string.IsNullOrEmpty(col.PropertyType))
28592859
return null;
28602860

28612861
return col;

0 commit comments

Comments
 (0)