Class UserRangeDefinition
A definition for a user-defined PostgreSQL range to be mapped.
Inheritance
Implements
Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal
Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
Syntax
public record UserRangeDefinition : IEquatable<UserRangeDefinition>
Constructors
| Improve this Doc View SourceUserRangeDefinition(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.
Declaration
public UserRangeDefinition(string rangeName, string? schemaName, Type subtypeClrType, string? subtypeName)
Parameters
Type | Name | Description |
---|---|---|
string | rangeName | |
string? | schemaName | |
Type | subtypeClrType | |
string? | subtypeName |
Properties
| Improve this Doc View SourceRangeName
The name of the PostgreSQL range type to be mapped.
Declaration
public virtual string RangeName { get; }
Property Value
Type | Description |
---|---|
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).
Declaration
public virtual string? SchemaName { get; }
Property Value
Type | Description |
---|---|
string? |
SubtypeClrType
The CLR type of the range's subtype (or element).
The actual mapped type will be an
Declaration
public virtual Type SubtypeClrType { get; }
Property Value
Type | Description |
---|---|
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.
Declaration
public virtual string? SubtypeName { get; }
Property Value
Type | Description |
---|---|
string? |