Skip to content

Commit 36ee796

Browse files
Kristóf Stedratibitoth
authored andcommitted
Merged PR 13922: Fix null ref warning
+semver: patch
2 parents f0f25d1 + 8f4adee commit 36ee796

File tree

1 file changed

+2
-2
lines changed
  • src/AutSoft.DbScaffolding/CodeTemplates/CSharpDbContext/Partials

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{{#each dbsets}}
2-
public virtual DbSet<{{set-property-type}}> {{set-property-name}} { get; set; }{{#if nullable-reference-types }} = null!;{{/if}}
3-
{{/each}}
2+
public virtual DbSet<{{set-property-type}}> {{set-property-name}} {{#if nullable-reference-types }}=> Set<{{set-property-type}}>();{{else}}{ get; set; }{{/if}}
3+
{{/each}}

0 commit comments

Comments
 (0)