|
23 | 23 | Settings.ConfigurationClassName = "Configuration"; // Configuration, Mapping, Map, etc. This is appended to the Poco class name to configure the mappings. |
24 | 24 | 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. |
25 | 25 | 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"; |
30 | 30 | Settings.MigrationClassModifiers = "internal sealed"; |
31 | | - Settings.ResultClassModifiers = "public"; |
| 31 | + Settings.ResultClassModifiers = "public"; // "public partial"; |
32 | 32 | Settings.UseMappingTables = true; // If true, mapping will be used and no mapping tables will be generated. If false, all tables will be generated. |
33 | 33 | Settings.UsePascalCase = true; // This will rename the generated C# tables & properties to use PascalCase. If false table & property names will be left alone. |
34 | 34 | Settings.UseDataAnnotations = false; // If true, will add data annotations to the poco classes. |
|
52 | 52 | Settings.IncludeCodeGeneratedAttribute = true; // If true, will include the GeneratedCode attribute, false to remove it. |
53 | 53 | Settings.UsePrivateSetterForComputedColumns = true; // If the columns is computed, use a private setter. |
54 | 54 | 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. |
56 | 56 | { |
57 | 57 | "" // example: "void SetAutoDetectChangesEnabled(bool flag);" |
58 | 58 | }; |
|
0 commit comments