File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
entity-framework/core/providers/sql-server Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ When using EF with dependency injection (e.g. ASP.NET), use the following:
6868``` c#
6969var builder = WebApplication .CreateBuilder (args );
7070builder .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#
9292var builder = WebApplication .CreateBuilder (args );
9393builder .Services .AddDbContext <MyContext >(options =>
94- options .UseSqlServer (builder .Configuration .GetConnectionString (" MyContext" )));
94+ options .UseAzureSynapse (builder .Configuration .GetConnectionString (" MyContext" )));
9595```
9696
9797> [ !NOTE]
You can’t perform that action at this time.
0 commit comments