Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions entity-framework/core/providers/sql-server/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ When using EF with dependency injection (e.g. ASP.NET), use the following:
```c#
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDbContext<MyContext>(options =>
options.UseSqlServer(builder.Configuration.GetConnectionString("MyContext")));
options.UseAzureSql(builder.Configuration.GetConnectionString("MyContext")));
```

> [!NOTE]
Expand All @@ -91,7 +91,7 @@ When using EF with dependency injection (e.g. ASP.NET), use the following:
```c#
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDbContext<MyContext>(options =>
options.UseSqlServer(builder.Configuration.GetConnectionString("MyContext")));
options.UseAzureSynapse(builder.Configuration.GetConnectionString("MyContext")));
```

> [!NOTE]
Expand Down