Remove obsolete calls to AddEntityFramework
This commit is contained in:
parent
215e41f673
commit
f35a3b4918
|
|
@ -303,7 +303,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests
|
|||
.ConfigureServices(
|
||||
services =>
|
||||
{
|
||||
services.AddEntityFramework().AddEntityFrameworkSqlServer();
|
||||
services.AddEntityFrameworkSqlServer();
|
||||
var optionsBuilder = new DbContextOptionsBuilder();
|
||||
if (!PlatformHelper.IsMono)
|
||||
{
|
||||
|
|
@ -425,8 +425,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests
|
|||
})
|
||||
.ConfigureServices(services =>
|
||||
{
|
||||
services.AddEntityFramework()
|
||||
.AddEntityFrameworkSqlServer();
|
||||
services.AddEntityFrameworkSqlServer();
|
||||
|
||||
services.AddScoped<TContext>();
|
||||
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests
|
|||
})
|
||||
.ConfigureServices(services =>
|
||||
{
|
||||
services.AddEntityFramework().AddEntityFrameworkSqlServer();
|
||||
services.AddEntityFrameworkSqlServer();
|
||||
services.AddScoped<BloggingContextWithMigrations>();
|
||||
services.AddSingleton(optionsBuilder.Options);
|
||||
});
|
||||
|
|
@ -171,7 +171,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests
|
|||
{
|
||||
var builder = new WebHostBuilder()
|
||||
.Configure(app => app.UseMigrationsEndPoint())
|
||||
.ConfigureServices(services => services.AddEntityFramework().AddEntityFrameworkSqlServer());
|
||||
.ConfigureServices(services => services.AddEntityFrameworkSqlServer());
|
||||
var server = new TestServer(builder);
|
||||
|
||||
var formData = new FormUrlEncodedContent(new List<KeyValuePair<string, string>>
|
||||
|
|
@ -200,7 +200,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests
|
|||
.Configure(app => app.UseMigrationsEndPoint())
|
||||
.ConfigureServices(services =>
|
||||
{
|
||||
services.AddEntityFramework().AddEntityFrameworkSqlServer();
|
||||
services.AddEntityFrameworkSqlServer();
|
||||
services.AddScoped<BloggingContextWithSnapshotThatThrows>();
|
||||
services.AddSingleton(optionsBuilder.Options);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue