diff --git a/src/MusicStore/Startup.cs b/src/MusicStore/Startup.cs index f74805af09..c36973055b 100644 --- a/src/MusicStore/Startup.cs +++ b/src/MusicStore/Startup.cs @@ -43,7 +43,7 @@ namespace MusicStore services.AddEntityFramework() .AddSqlServer() .AddDbContext(options => - options.UserSqlServer(Configuration.Get("Data:DefaultConnection:ConnectionString"))); + options.UseSqlServer(Configuration.Get("Data:DefaultConnection:ConnectionString"))); } // Add Identity services to the services container diff --git a/src/MusicStore/StartupNtlmAuthentication.cs b/src/MusicStore/StartupNtlmAuthentication.cs index 04e0c9c832..91b00a062f 100644 --- a/src/MusicStore/StartupNtlmAuthentication.cs +++ b/src/MusicStore/StartupNtlmAuthentication.cs @@ -48,7 +48,7 @@ namespace MusicStore services.AddEntityFramework() .AddSqlServer() .AddDbContext(options => - options.UserSqlServer(Configuration.Get("Data:DefaultConnection:ConnectionString"))); + options.UseSqlServer(Configuration.Get("Data:DefaultConnection:ConnectionString"))); // Add MVC services to the services container services.AddMvc(); diff --git a/src/MusicStore/StartupOpenIdConnect.cs b/src/MusicStore/StartupOpenIdConnect.cs index bd57c30ab8..cd0cb76600 100644 --- a/src/MusicStore/StartupOpenIdConnect.cs +++ b/src/MusicStore/StartupOpenIdConnect.cs @@ -56,7 +56,7 @@ namespace MusicStore services.AddEntityFramework() .AddSqlServer() .AddDbContext(options => - options.UserSqlServer(Configuration.Get("Data:DefaultConnection:ConnectionString"))); + options.UseSqlServer(Configuration.Get("Data:DefaultConnection:ConnectionString"))); } // Add Identity services to the services container