Skip to content

Commit

Permalink
Update WebApplicationBuilderExtensions.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Apr 28, 2024
1 parent c2cd8ce commit 0c2cef4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public static WebApplicationBuilder AddDatabase(this WebApplicationBuilder build
{
var connectionString = GetConnectionString(builder.Configuration);

builder.Services.AddSqlServer<JordnaerDbContext>(connectionString);
builder.Services
.AddSqlServer<JordnaerDbContext>(connectionString,
optionsBuilder => optionsBuilder.UseAzureSqlDefaults());

builder.Services.AddHealthChecks().AddSqlServer(connectionString);

Expand Down

0 comments on commit 0c2cef4

Please sign in to comment.