# Class NpgsqlNodaTimeServiceCollectionExtensions

Namespace
  Microsoft.Extensions.DependencyInjection

Assembly
  Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime.dll

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

    public static class NpgsqlNodaTimeServiceCollectionExtensions

Inheritance
  object
  NpgsqlNodaTimeServiceCollectionExtensions

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

## Methods

### AddEntityFrameworkNpgsqlNodaTime(IServiceCollection)

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

    public static IServiceCollection AddEntityFrameworkNpgsqlNodaTime(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.