Remove obsolete calls to AddEntityFramework

This commit is contained in:
Arthur Vickers 2017-01-26 12:03:21 -08:00
parent 215e41f673
commit f35a3b4918
2 changed files with 5 additions and 6 deletions

View File

@ -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>();

View File

@ -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);
});