# Class NpgsqlNetTopologySuiteServiceCollectionExtensions

Namespace
  Microsoft.Extensions.DependencyInjection

Assembly
  Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite.dll

Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite extension methods for IServiceCollection.

    public static class NpgsqlNetTopologySuiteServiceCollectionExtensions

Inheritance
  object
  NpgsqlNetTopologySuiteServiceCollectionExtensions

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## Methods

### AddEntityFrameworkNpgsqlNetTopologySuite(IServiceCollection)

Adds the services required for NetTopologySuite support in the Npgsql provider for Entity Framework.

    public static IServiceCollection AddEntityFrameworkNpgsqlNetTopologySuite(this IServiceCollection serviceCollection)

#### Parameters

`serviceCollection` IServiceCollection

  The IServiceCollection to add services to.

#### Returns

IServiceCollection

  The same service collection so that multiple calls can be chained.