Skip to content

Commit b76fd2c

Browse files
Update SQL Server page to use UseAzure/UseSynapse
1 parent 004933b commit b76fd2c

File tree

1 file changed

+2
-2
lines changed
  • entity-framework/core/providers/sql-server

1 file changed

+2
-2
lines changed

entity-framework/core/providers/sql-server/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ When using EF with dependency injection (e.g. ASP.NET), use the following:
6868
```c#
6969
var builder = WebApplication.CreateBuilder(args);
7070
builder.Services.AddDbContext<MyContext>(options =>
71-
options.UseSqlServer(builder.Configuration.GetConnectionString("MyContext")));
71+
options.UseAzureSql(builder.Configuration.GetConnectionString("MyContext")));
7272
```
7373

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

9797
> [!NOTE]

0 commit comments

Comments
 (0)