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.
1 parent 67d258b commit b07e0beCopy full SHA for b07e0be
CentralizedLoggingApi/DbSeeder.cs
@@ -1,6 +1,7 @@
1
using CentralizedLoggingApi.Data;
2
using CentralizedLoggingApi.Models;
3
using Microsoft.EntityFrameworkCore;
4
+using System;
5
6
namespace CentralizedLoggingApi
7
{
@@ -10,10 +11,7 @@ public static void Seed(IServiceProvider serviceProvider)
10
11
12
using var scope = serviceProvider.CreateScope();
13
var context = scope.ServiceProvider.GetRequiredService<LoggingDbContext>();
-
14
- // Run migrations
15
- context.Database.Migrate();
16
+
17
// Seed Applications
18
if (!context.Applications.Any())
19
0 commit comments