Skip to content

Commit 156edf7

Browse files
committed
Fix warning
1 parent baeb8dc commit 156edf7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/BloggingContext.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ namespace EFCoreViewer.Test;
44

55
public class BloggingContext : DbContext
66
{
7-
public DbSet<Blog>? Blogs { get; set; }
8-
public DbSet<Post>? Posts { get; set; }
7+
public DbSet<Blog> Blogs => Set<Blog>();
8+
9+
public DbSet<Post> Posts => Set<Post>();
910

1011
public string DbPath { get; }
1112

0 commit comments

Comments
 (0)