Search Results for

    Show / Hide Table of Contents

    Class PostgresRange

    Represents the metadata for a PostgreSQL range.

    Inheritance
    object
    PostgresRange
    Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Metadata
    Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
    Syntax
    public class PostgresRange

    Properties

    | Improve this Doc View Source

    Annotatable

    The Annotatable that stores the range.

    Declaration
    public virtual Annotatable Annotatable { get; }
    Property Value
    Type Description
    Annotatable
    | Improve this Doc View Source

    CanonicalFunction

    The function defining a "step" in a discrete range.

    Declaration
    public virtual string? CanonicalFunction { get; set; }
    Property Value
    Type Description
    string?
    | Improve this Doc View Source

    Collation

    The collation to use.

    Declaration
    public virtual string? Collation { get; set; }
    Property Value
    Type Description
    string?
    | Improve this Doc View Source

    Name

    The range name.

    Declaration
    public virtual string Name { get; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    Schema

    The range schema or null to represent the default schema.

    Declaration
    public virtual string? Schema { get; }
    Property Value
    Type Description
    string?
    | Improve this Doc View Source

    Subtype

    The subtype of the range.

    Declaration
    public virtual string Subtype { get; set; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    SubtypeDiff

    The function defining a difference in subtype values.

    Declaration
    public virtual string? SubtypeDiff { get; set; }
    Property Value
    Type Description
    string?
    | Improve this Doc View Source

    SubtypeOpClass

    The operator class to use.

    Declaration
    public virtual string? SubtypeOpClass { get; set; }
    Property Value
    Type Description
    string?

    Methods

    | Improve this Doc View Source

    FindPostgresRange(IReadOnlyAnnotatable, string?, string)

    Finds a PostgresRange in the , or returns null if not found.

    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 .

    | Improve this Doc View Source

    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 .

    | Improve this Doc View Source

    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 .

    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team