Skip to content

Commit 7ffa4e1

Browse files
committed
Updated comments
1 parent b3b57f5 commit 7ffa4e1

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
Settings.ConfigurationClassName = "Configuration"; // Configuration, Mapping, Map, etc. This is appended to the Poco class name to configure the mappings.
2323
Settings.FilenameSearchOrder = new[] { "app.config", "web.config" }; // Add more here if required. The config files are searched for in the local project first, then the whole solution second.
2424
Settings.GenerateSeparateFiles = false;
25-
Settings.EntityClassesModifiers = "public";
26-
Settings.ConfigurationClassesModifiers = "public";
27-
Settings.DbContextClassModifiers = "public";
28-
Settings.DbContextInterfaceModifiers = "public";
25+
Settings.EntityClassesModifiers = "public"; // "public partial";
26+
Settings.ConfigurationClassesModifiers = "public"; // "public partial";
27+
Settings.DbContextClassModifiers = "public"; // "public partial";
28+
Settings.DbContextInterfaceModifiers = "public"; // "public partial";
2929
Settings.MigrationClassModifiers = "internal sealed";
30-
Settings.ResultClassModifiers = "public";
30+
Settings.ResultClassModifiers = "public"; // "public partial";
3131
Settings.UseMappingTables = true; // If true, mapping will be used and no mapping tables will be generated. If false, all tables will be generated.
3232
Settings.UsePascalCase = true; // This will rename the generated C# tables & properties to use PascalCase. If false table & property names will be left alone.
3333
Settings.UseDataAnnotations = false; // If true, will add data annotations to the poco classes.

EntityFramework.Reverse.POCO.Generator/Database.tt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
Settings.ConfigurationClassName = "Configuration"; // Configuration, Mapping, Map, etc. This is appended to the Poco class name to configure the mappings.
2424
Settings.FilenameSearchOrder = new[] { "app.config", "web.config" }; // Add more here if required. The config files are searched for in the local project first, then the whole solution second.
2525
Settings.GenerateSeparateFiles = false;
26-
Settings.EntityClassesModifiers = "public";
27-
Settings.ConfigurationClassesModifiers = "public";
28-
Settings.DbContextClassModifiers = "public";
29-
Settings.DbContextInterfaceModifiers = "public";
26+
Settings.EntityClassesModifiers = "public"; // "public partial";
27+
Settings.ConfigurationClassesModifiers = "public"; // "public partial";
28+
Settings.DbContextClassModifiers = "public"; // "public partial";
29+
Settings.DbContextInterfaceModifiers = "public"; // "public partial";
3030
Settings.MigrationClassModifiers = "internal sealed";
31-
Settings.ResultClassModifiers = "public";
31+
Settings.ResultClassModifiers = "public"; // "public partial";
3232
Settings.UseMappingTables = true; // If true, mapping will be used and no mapping tables will be generated. If false, all tables will be generated.
3333
Settings.UsePascalCase = true; // This will rename the generated C# tables & properties to use PascalCase. If false table & property names will be left alone.
3434
Settings.UseDataAnnotations = false; // If true, will add data annotations to the poco classes.
@@ -52,7 +52,7 @@
5252
Settings.IncludeCodeGeneratedAttribute = true; // If true, will include the GeneratedCode attribute, false to remove it.
5353
Settings.UsePrivateSetterForComputedColumns = true; // If the columns is computed, use a private setter.
5454
Settings.AdditionalNamespaces = new[] { "" }; // To include extra namespaces, include them here. i.e. "Microsoft.AspNet.Identity.EntityFramework"
55-
Settings.AdditionalContextInterfaceItems = new[] // To include extra db context interface items, include them here. Also set MakeClassesPartial=true, and implement the partial DbContext class functions.
55+
Settings.AdditionalContextInterfaceItems = new[] // To include extra db context interface items, include them here. Also set DbContextClassModifiers="public partial", and implement the partial DbContext class functions.
5656
{
5757
"" // example: "void SetAutoDetectChangesEnabled(bool flag);"
5858
};

Tester/TestDatabase_DataAnnotation.tt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
Settings.ConfigurationClassName = "Configuration"; // Configuration, Mapping, Map, etc. This is appended to the Poco class name to configure the mappings.
2424
Settings.FilenameSearchOrder = new[] { "app.config", "web.config" }; // Add more here if required. The config files are searched for in the local project first, then the whole solution second.
2525
Settings.GenerateSeparateFiles = false;
26-
Settings.EntityClassesModifiers = "public";
27-
Settings.ConfigurationClassesModifiers = "public";
28-
Settings.DbContextClassModifiers = "public";
29-
Settings.DbContextInterfaceModifiers = "public";
26+
Settings.EntityClassesModifiers = "public"; // "public partial";
27+
Settings.ConfigurationClassesModifiers = "public"; // "public partial";
28+
Settings.DbContextClassModifiers = "public"; // "public partial";
29+
Settings.DbContextInterfaceModifiers = "public"; // "public partial";
3030
Settings.MigrationClassModifiers = "internal sealed";
31-
Settings.ResultClassModifiers = "public";
31+
Settings.ResultClassModifiers = "public"; // "public partial";
3232
Settings.UseMappingTables = true; // If true, mapping will be used and no mapping tables will be generated. If false, all tables will be generated.
3333
Settings.UsePascalCase = true; // This will rename the generated C# tables & properties to use PascalCase. If false table & property names will be left alone.
3434
Settings.UseDataAnnotations = true; // If true, will add data annotations to the poco classes.

Tester/TestDatabase_NoDataAnnotation.tt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
Settings.ConfigurationClassName = "Configuration"; // Configuration, Mapping, Map, etc. This is appended to the Poco class name to configure the mappings.
2424
Settings.FilenameSearchOrder = new[] { "app.config", "web.config" }; // Add more here if required. The config files are searched for in the local project first, then the whole solution second.
2525
Settings.GenerateSeparateFiles = false;
26-
Settings.EntityClassesModifiers = "public";
27-
Settings.ConfigurationClassesModifiers = "public";
28-
Settings.DbContextClassModifiers = "public";
29-
Settings.DbContextInterfaceModifiers = "public";
26+
Settings.EntityClassesModifiers = "public"; // "public partial";
27+
Settings.ConfigurationClassesModifiers = "public"; // "public partial";
28+
Settings.DbContextClassModifiers = "public"; // "public partial";
29+
Settings.DbContextInterfaceModifiers = "public"; // "public partial";
3030
Settings.MigrationClassModifiers = "internal sealed";
31-
Settings.ResultClassModifiers = "public";
31+
Settings.ResultClassModifiers = "public"; // "public partial";
3232
Settings.UseMappingTables = true; // If true, mapping will be used and no mapping tables will be generated. If false, all tables will be generated.
3333
Settings.UsePascalCase = true; // This will rename the generated C# tables & properties to use PascalCase. If false table & property names will be left alone.
3434
Settings.UseDataAnnotations = false; // If true, will add data annotations to the poco classes.

Tester/TestSynonymsDatabase.tt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
Settings.ConfigurationClassName = "Configuration"; // Configuration, Mapping, Map, etc. This is appended to the Poco class name to configure the mappings.
2424
Settings.FilenameSearchOrder = new[] { "app.config", "web.config" }; // Add more here if required. The config files are searched for in the local project first, then the whole solution second.
2525
Settings.GenerateSeparateFiles = false;
26-
Settings.EntityClassesModifiers = "public";
27-
Settings.ConfigurationClassesModifiers = "public";
28-
Settings.DbContextClassModifiers = "public";
29-
Settings.DbContextInterfaceModifiers = "public";
26+
Settings.EntityClassesModifiers = "public"; // "public partial";
27+
Settings.ConfigurationClassesModifiers = "public"; // "public partial";
28+
Settings.DbContextClassModifiers = "public"; // "public partial";
29+
Settings.DbContextInterfaceModifiers = "public"; // "public partial";
3030
Settings.MigrationClassModifiers = "internal sealed";
31-
Settings.ResultClassModifiers = "public";
31+
Settings.ResultClassModifiers = "public"; // "public partial";
3232
Settings.UseMappingTables = true; // If true, mapping will be used and no mapping tables will be generated. If false, all tables will be generated.
3333
Settings.UsePascalCase = true; // This will rename the generated C# tables & properties to use PascalCase. If false table & property names will be left alone.
3434
Settings.UseDataAnnotations = false; // If true, will add data annotations to the poco classes.

0 commit comments

Comments
 (0)