# Interface INpgsqlSingletonOptions

Namespace
  Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal

Assembly
  Npgsql.EntityFrameworkCore.PostgreSQL.dll

Represents options for Npgsql that can only be set at the IServiceProvider singleton level.

    public interface INpgsqlSingletonOptions : ISingletonOptions

Inherited Members
  ISingletonOptions.Initialize(IDbContextOptions)
  ISingletonOptions.Validate(IDbContextOptions)

## Properties

### EnumDefinitions

The collection of enum mappings.

    IReadOnlyList<EnumDefinition> EnumDefinitions { get; }

#### Property Value

IReadOnlyList<EnumDefinition>

### IsPostgresVersionSet

Whether the user has explicitly set the backend version to target.

    bool IsPostgresVersionSet { get; }

#### Property Value

bool

### PostgresVersion

The backend version to target.

    Version PostgresVersion { get; }

#### Property Value

Version

### ReverseNullOrderingEnabled

Whether reverse null ordering is enabled.

    bool ReverseNullOrderingEnabled { get; }

#### Property Value

bool

### UseRedshift

Whether to target Redshift.

    bool UseRedshift { get; }

#### Property Value

bool

### UserRangeDefinitions

The collection of range mappings.

    IReadOnlyList<UserRangeDefinition> UserRangeDefinitions { get; }

#### Property Value

IReadOnlyList<UserRangeDefinition>