9 references to MyDb1Context
DatabaseMigration.ApiModel (2)
Migrations\20240216140519_InitialCreate.Designer.cs (1)
13
[DbContext(typeof(
MyDb1Context
))]
Migrations\MyDb1ContextModelSnapshot.cs (1)
12
[DbContext(typeof(
MyDb1Context
))]
DatabaseMigration.ApiService (2)
Program.cs (2)
10
builder.AddSqlServerDbContext<
MyDb1Context
>("db1", configureDbContextOptions: options =>
20
app.MapGet("/", async (
MyDb1Context
context) =>
DatabaseMigration.MigrationService (5)
ApiDbInitializer.cs (4)
27
var
dbContext = scope.ServiceProvider.GetRequiredService<
MyDb1Context
>();
41
private static async Task EnsureDatabaseAsync(
MyDb1Context
dbContext, CancellationToken cancellationToken)
57
private static async Task RunMigrationAsync(
MyDb1Context
dbContext, CancellationToken cancellationToken)
Program.cs (1)
15
builder.AddSqlServerDbContext<
MyDb1Context
>("db1");