Table of Contents

Class UserRangeDefinition

Namespace
Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal
Assembly
Npgsql.EntityFrameworkCore.PostgreSQL.dll

A definition for a user-defined PostgreSQL range to be mapped.

public record UserRangeDefinition : IEquatable<UserRangeDefinition>
Inheritance
UserRangeDefinition
Implements
Inherited Members

Constructors

UserRangeDefinition(string, string?, Type, string?)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public UserRangeDefinition(string rangeName, string? schemaName, Type subtypeClrType, string? subtypeName)

Parameters

rangeName string
schemaName string
subtypeClrType Type
subtypeName string

Properties

RangeName

The name of the PostgreSQL range type to be mapped.

public virtual string RangeName { get; }

Property Value

string

SchemaName

The PostgreSQL schema in which the range is defined. If null, the default schema is used (which is public unless changed on the model).

public virtual string? SchemaName { get; }

Property Value

string

SubtypeClrType

The CLR type of the range's subtype (or element). The actual mapped type will be an NpgsqlRange<T> over this type.

public virtual Type SubtypeClrType { get; }

Property Value

Type

SubtypeName

Optionally, the name of the range's PostgreSQL subtype (or element). This is usually not needed - the subtype will be inferred based on SubtypeClrType.

public virtual string? SubtypeName { get; }

Property Value

string