diff --git a/src/EFCore.PG/Extensions/NpgsqlServiceCollectionExtensions.cs b/src/EFCore.PG/Extensions/NpgsqlServiceCollectionExtensions.cs
index 0f60182d920f20f7bd3fa7b4e64cc35e919358c3..cbc5acfa41c472cdac726303e41ea658a8851229 100644
--- a/src/EFCore.PG/Extensions/NpgsqlServiceCollectionExtensions.cs
+++ b/src/EFCore.PG/Extensions/NpgsqlServiceCollectionExtensions.cs
@@ -1,10 +1,10 @@
using JetBrains.Annotations;
+using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Query;
-using Microsoft.EntityFrameworkCore.Query.Internal;
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Microsoft.EntityFrameworkCore.Update;
@@ -31,36 +31,24 @@ namespace Microsoft.Extensions.DependencyInjection
/// Provides extension methods to configure Entity Framework Core for Npgsql.
///
// ReSharper disable once UnusedMember.Global
- public static class NpgsqlEntityFrameworkServicesBuilderExtensions
+ public static class NpgsqlServiceCollectionExtensions
{
///
///
/// Adds the services required by the Npgsql database provider for Entity Framework
- /// to an . You use this method when using dependency injection
- /// in your application, such as with ASP.NET. For more information on setting up dependency
- /// injection, see http://go.microsoft.com/fwlink/?LinkId=526890.
+ /// to an .
///
///
- /// You only need to use this functionality when you want Entity Framework to resolve the services it uses
- /// from an external . If you are not using an external
- /// Entity Framework will take care of creating the services it requires.
+ /// Calling this method is no longer necessary when building most applications, including those that
+ /// use dependency injection in ASP.NET or elsewhere.
+ /// It is only needed when building the internal service provider for use with
+ /// the method.
+ /// This is not recommend other than for some advanced scenarios.
///
///
- ///
- ///
- /// public void ConfigureServices(IServiceCollection services)
- /// {
- /// var connectionString = "connection string to database";
- ///
- /// services
- /// .AddEntityFrameworkSqlServer()
- /// .AddDbContext<MyContext>(options => options.UseNpgsql(connectionString));
- /// }
- ///
- ///
/// The to add services to.
///
- /// A builder that allows further Entity Framework specific setup of the .
+ /// The same service collection so that multiple calls can be chained.
///
public static IServiceCollection AddEntityFrameworkNpgsql([NotNull] this IServiceCollection serviceCollection)
{