Class PostgresRange
Represents the metadata for a PostgreSQL range.
Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Metadata
Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
Syntax
public class PostgresRange
Properties
| Improve this Doc View SourceAnnotatable
The Annotatable that stores the range.
Declaration
public virtual Annotatable Annotatable { get; }
Property Value
Type | Description |
---|---|
Annotatable |
CanonicalFunction
The function defining a "step" in a discrete range.
Declaration
public virtual string? CanonicalFunction { get; set; }
Property Value
Type | Description |
---|---|
string? |
Collation
The collation to use.
Declaration
public virtual string? Collation { get; set; }
Property Value
Type | Description |
---|---|
string? |
Name
The range name.
Declaration
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
Schema
The range schema or null to represent the default schema.
Declaration
public virtual string? Schema { get; }
Property Value
Type | Description |
---|---|
string? |
Subtype
The subtype of the range.
Declaration
public virtual string Subtype { get; set; }
Property Value
Type | Description |
---|---|
string |
SubtypeDiff
The function defining a difference in subtype values.
Declaration
public virtual string? SubtypeDiff { get; set; }
Property Value
Type | Description |
---|---|
string? |
SubtypeOpClass
The operator class to use.
Declaration
public virtual string? SubtypeOpClass { get; set; }
Property Value
Type | Description |
---|---|
string? |
Methods
| Improve this Doc View SourceFindPostgresRange(IReadOnlyAnnotatable, string?, string)
Finds a PostgresRange in the
Declaration
public static PostgresRange? FindPostgresRange(IReadOnlyAnnotatable annotatable, string? schema, string name)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyAnnotatable | annotatable | The annotatable to search for the range. |
string? | schema | The range schema or null to use the model's default schema. |
string | name | The range name. |
Returns
Type | Description |
---|---|
PostgresRange | The PostgresRange from the |
GetOrAddPostgresRange(IMutableAnnotatable, string?, string, string, string?, string?, string?, string?)
Gets or adds a PostgresRange from or to the
Declaration
public static PostgresRange GetOrAddPostgresRange(IMutableAnnotatable annotatable, string? schema, string name, string subtype, string? canonicalFunction = null, string? subtypeOpClass = null, string? collation = null, string? subtypeDiff = null)
Parameters
Type | Name | Description |
---|---|---|
IMutableAnnotatable | annotatable | The annotatable from which to get or add the range. |
string? | schema | The range schema or null to use the model's default schema. |
string | name | The range name. |
string | subtype | The range subtype. |
string? | canonicalFunction | |
string? | subtypeOpClass | |
string? | collation | |
string? | subtypeDiff |
Returns
Type | Description |
---|---|
PostgresRange | The PostgresRange from the |
GetPostgresRanges(IReadOnlyAnnotatable)
Gets the collection of PostgresRange stored in the
Declaration
public static IEnumerable<PostgresRange> GetPostgresRanges(IReadOnlyAnnotatable annotatable)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyAnnotatable | annotatable | The annotatable to search for PostgresRange annotations. |
Returns
Type | Description |
---|---|
IEnumerable<><PostgresRange> | The collection of PostgresRange stored in the |