Skip to content

Commit cdac751

Browse files
authored
Merge pull request #187 from cux/patch-2
Update EF.Reverse.POCO.Core.ttinclude
2 parents 77d6f1e + 3904ef4 commit cdac751

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,7 @@
784784
public string Name; // Raw name of the column as obtained from the database
785785
public string NameHumanCase; // Name adjusted for C# output
786786
public string DisplayName; // Name used in the data annotation [Display(Name = "<DisplayName> goes here")]
787+
public bool OverrideModifier = false; //The override modifier is required
787788

788789
public int DateTimePrecision;
789790
public string Default;
@@ -868,7 +869,7 @@
868869
inlineComments += ". " + ExtendedProperty;
869870
}
870871

871-
Entity = string.Format("public {0} {1} {{ get; {2}set; }}{3}", WrapIfNullable(PropertyType, this), NameHumanCase, usePrivateSetterForComputedColumns && IsComputed() ? "private " : string.Empty, inlineComments);
872+
Entity = string.Format("public {0} {1} {2} {{ get; {3}set; }}{4}", (OverrideModifier ? "override" : "") , WrapIfNullable(PropertyType, this), NameHumanCase, usePrivateSetterForComputedColumns && IsComputed() ? "private " : string.Empty, inlineComments);
872873
}
873874

874875
private string WrapIfNullable(string propType, Column col)

0 commit comments

Comments
 (0)