Skip to content

Commit 94f200e

Browse files
committed
Refactor Program.cs to ensure database creation and check for existing messages
1 parent 11575f9 commit 94f200e

File tree

1 file changed

+1
-1
lines changed
  • src/Application/src/RazorPagesTestSample

1 file changed

+1
-1
lines changed

src/Application/src/RazorPagesTestSample/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static void Main(string[] args)
1818
{
1919
var services = scope.ServiceProvider;
2020
var db = services.GetRequiredService<AppDbContext>();
21-
21+
2222
db.Database.EnsureCreated();
2323

2424
if (!db.Messages.Any())

0 commit comments

Comments
 (0)