We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0f25d1 + 8f4adee commit 36ee796Copy full SHA for 36ee796
src/AutSoft.DbScaffolding/CodeTemplates/CSharpDbContext/Partials/DbSets.hbs
@@ -1,3 +1,3 @@
1
{{#each dbsets}}
2
- public virtual DbSet<{{set-property-type}}> {{set-property-name}} { get; set; }{{#if nullable-reference-types }} = null!;{{/if}}
3
-{{/each}}
+ public virtual DbSet<{{set-property-type}}> {{set-property-name}} {{#if nullable-reference-types }}=> Set<{{set-property-type}}>();{{else}}{ get; set; }{{/if}}
+{{/each}}
0 commit comments