Skip to content

Commit 8bf8199

Browse files
committed
Enhanced comments for UsePropertyInitializers setting
1 parent 60f669a commit 8bf8199

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

EntityFramework.Reverse.POCO.Generator/Database NorthwindSqlCe40.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
UsePascalCase = true; // This will rename the generated C# tables & properties to use PascalCase. If false table & property names will be left alone.
2828
UseDataAnnotations = false; // If true, will add data annotations to the poco classes.
2929
UseDataAnnotationsSchema = false; // UseDataAnnotations must also be true. If true, will add data annotations schema to the poco classes.
30-
UsePropertyInitializers = false; // C# 6 feature
30+
UsePropertyInitializers = false; // Removes POCO constructor and instead uses C# 6 property initialisers to set defaults
3131
IncludeComments = CommentsStyle.AtEndOfField; // Adds comments to the generated code
3232
IncludeExtendedPropertyComments = CommentsStyle.InSummaryBlock; // Adds extended properties as comments to the generated code
3333
IncludeViews = true;

EntityFramework.Reverse.POCO.Generator/Database.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
UsePascalCase = true; // This will rename the generated C# tables & properties to use PascalCase. If false table & property names will be left alone.
2828
UseDataAnnotations = false; // If true, will add data annotations to the poco classes.
2929
UseDataAnnotationsSchema = false; // UseDataAnnotations must also be true. If true, will add data annotations schema to the poco classes.
30-
UsePropertyInitializers = false; // C# 6 feature
30+
UsePropertyInitializers = false; // Removes POCO constructor and instead uses C# 6 property initialisers to set defaults
3131
IncludeComments = CommentsStyle.AtEndOfField; // Adds comments to the generated code
3232
IncludeExtendedPropertyComments = CommentsStyle.InSummaryBlock; // Adds extended properties as comments to the generated code
3333
IncludeViews = true;

0 commit comments

Comments
 (0)