# Class EntityFrameworkNpgsqlServicesBuilder

Namespace
  Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure

Assembly
  Npgsql.EntityFrameworkCore.PostgreSQL.dll

A builder API designed for Npgsql when registering services.

    public class EntityFrameworkNpgsqlServicesBuilder : EntityFrameworkRelationalServicesBuilder

Inheritance
  object
  EntityFrameworkServicesBuilder
  EntityFrameworkRelationalServicesBuilder
  EntityFrameworkNpgsqlServicesBuilder

Inherited Members
  EntityFrameworkRelationalServicesBuilder.RelationalServices
  EntityFrameworkRelationalServicesBuilder.TryAddCoreServices()
  EntityFrameworkServicesBuilder.CoreServices
  EntityFrameworkServicesBuilder.GetServiceCharacteristics(Type)
  EntityFrameworkServicesBuilder.TryAddProviderSpecificServices(Action<ServiceCollectionMap>)
  EntityFrameworkServicesBuilder.TryAdd<TService, TImplementation>()
  EntityFrameworkServicesBuilder.TryAdd(Type, Type)
  EntityFrameworkServicesBuilder.TryAdd<TService>(Func<IServiceProvider, TService>)
  EntityFrameworkServicesBuilder.TryAdd<TService, TImplementation>(Func<IServiceProvider, TImplementation>)
  EntityFrameworkServicesBuilder.TryAdd(Type, Type, Func<IServiceProvider, object>)
  EntityFrameworkServicesBuilder.TryAdd<TService>(TService)
  EntityFrameworkServicesBuilder.TryAdd(Type, object)
  EntityFrameworkServicesBuilder.ServiceCollectionMap
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## Constructors

### EntityFrameworkNpgsqlServicesBuilder(IServiceCollection)

Used by relational database providers to create a new EntityFrameworkRelationalServicesBuilder for registration of provider services.

    public EntityFrameworkNpgsqlServicesBuilder(IServiceCollection serviceCollection)

#### Parameters

`serviceCollection` IServiceCollection

  The collection to which services will be registered.

## Methods

### TryGetServiceCharacteristics(Type)

Gets the ServiceCharacteristics for the given service type.

    protected override ServiceCharacteristics? TryGetServiceCharacteristics(Type serviceType)

#### Parameters

`serviceType` Type

  The type that defines the service API.

#### Returns

ServiceCharacteristics?

  The ServiceCharacteristics for the type or null if it's not an EF service.