diff --git a/entity-framework/core/providers/sql-server/index.md b/entity-framework/core/providers/sql-server/index.md index 81121d9544..a1a9dc0439 100644 --- a/entity-framework/core/providers/sql-server/index.md +++ b/entity-framework/core/providers/sql-server/index.md @@ -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(options => - options.UseSqlServer(builder.Configuration.GetConnectionString("MyContext"))); + options.UseAzureSql(builder.Configuration.GetConnectionString("MyContext"))); ``` > [!NOTE] @@ -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(options => - options.UseSqlServer(builder.Configuration.GetConnectionString("MyContext"))); + options.UseAzureSynapse(builder.Configuration.GetConnectionString("MyContext"))); ``` > [!NOTE]