Search Results for

    Show / Hide Table of Contents

    Class NpgsqlMultirangeTypeMapping

    The type mapping for PostgreSQL multirange types.

    Inheritance
    object
    NpgsqlTypeMapping
    NpgsqlMultirangeTypeMapping
    Implements
    INpgsqlTypeMapping
    Inherited Members
    NpgsqlTypeMapping.NpgsqlDbType
    NpgsqlTypeMapping.ConfigureParameter(DbParameter)
    NpgsqlTypeMapping.GenerateEmbeddedSqlLiteral(object?)
    NpgsqlTypeMapping.GenerateEmbeddedProviderValueSqlLiteral(object?)
    NpgsqlTypeMapping.GenerateEmbeddedNonNullSqlLiteral(object)
    Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping
    Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
    Syntax
    public class NpgsqlMultirangeTypeMapping : NpgsqlTypeMapping, INpgsqlTypeMapping
    Remarks

    See: https://www.postgresql.org/docs/current/static/rangetypes.html

    Constructors

    | Improve this Doc View Source

    NpgsqlMultirangeTypeMapping(RelationalTypeMappingParameters, NpgsqlDbType, NpgsqlRangeTypeMapping, ISqlGenerationHelper)

    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
    protected NpgsqlMultirangeTypeMapping(RelationalTypeMappingParameters parameters, NpgsqlDbType npgsqlDbType, NpgsqlRangeTypeMapping rangeMapping, ISqlGenerationHelper sqlGenerationHelper)
    Parameters
    Type Name Description
    RelationalTypeMappingParameters parameters
    NpgsqlDbType npgsqlDbType
    NpgsqlRangeTypeMapping rangeMapping
    ISqlGenerationHelper sqlGenerationHelper
    Remarks

    See: https://www.postgresql.org/docs/current/static/rangetypes.html

    | Improve this Doc View Source

    NpgsqlMultirangeTypeMapping(string, string?, Type, NpgsqlRangeTypeMapping, ISqlGenerationHelper)

    Constructs an instance of the NpgsqlRangeTypeMapping class.

    Declaration
    public NpgsqlMultirangeTypeMapping(string storeType, string? storeTypeSchema, Type clrType, NpgsqlRangeTypeMapping rangeMapping, ISqlGenerationHelper sqlGenerationHelper)
    Parameters
    Type Name Description
    string storeType

    The database type to map

    string? storeTypeSchema

    The schema of the type.

    Type clrType

    The CLR type to map.

    NpgsqlRangeTypeMapping rangeMapping

    The type mapping of the ranges contained in this multirange.

    ISqlGenerationHelper sqlGenerationHelper

    The SQL generation helper to delimit the store name.

    Remarks

    See: https://www.postgresql.org/docs/current/static/rangetypes.html

    | Improve this Doc View Source

    NpgsqlMultirangeTypeMapping(string, Type, NpgsqlRangeTypeMapping, ISqlGenerationHelper)

    Constructs an instance of the NpgsqlRangeTypeMapping class.

    Declaration
    public NpgsqlMultirangeTypeMapping(string storeType, Type clrType, NpgsqlRangeTypeMapping rangeMapping, ISqlGenerationHelper sqlGenerationHelper)
    Parameters
    Type Name Description
    string storeType

    The database type to map

    Type clrType

    The CLR type to map.

    NpgsqlRangeTypeMapping rangeMapping

    The type mapping of the ranges contained in this multirange.

    ISqlGenerationHelper sqlGenerationHelper

    The SQL generation helper to delimit the store name.

    Remarks

    See: https://www.postgresql.org/docs/current/static/rangetypes.html

    Properties

    | Improve this Doc View Source

    RangeMapping

    The relational type mapping of the ranges contained in this multirange.

    Declaration
    public virtual NpgsqlRangeTypeMapping RangeMapping { get; }
    Property Value
    Type Description
    NpgsqlRangeTypeMapping
    Remarks

    See: https://www.postgresql.org/docs/current/static/rangetypes.html

    | Improve this Doc View Source

    SubtypeMapping

    The relational type mapping of the values contained in this multirange.

    Declaration
    public virtual RelationalTypeMapping SubtypeMapping { get; }
    Property Value
    Type Description
    RelationalTypeMapping
    Remarks

    See: https://www.postgresql.org/docs/current/static/rangetypes.html

    Methods

    | Improve this Doc View Source

    Clone(RelationalTypeMappingParameters)

    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
    protected override RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters)
    Parameters
    Type Name Description
    RelationalTypeMappingParameters parameters
    Returns
    Type Description
    RelationalTypeMapping
    Remarks

    See: https://www.postgresql.org/docs/current/static/rangetypes.html

    | Improve this Doc View Source

    GenerateCodeLiteral(object)

    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 override Expression GenerateCodeLiteral(object value)
    Parameters
    Type Name Description
    object value
    Returns
    Type Description
    Expression
    Remarks

    See: https://www.postgresql.org/docs/current/static/rangetypes.html

    | Improve this Doc View Source

    GenerateNonNullSqlLiteral(object, RelationalTypeMapping, 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 static string GenerateNonNullSqlLiteral(object value, RelationalTypeMapping rangeMapping, string multirangeStoreType)
    Parameters
    Type Name Description
    object value
    RelationalTypeMapping rangeMapping
    string multirangeStoreType
    Returns
    Type Description
    string
    Remarks

    See: https://www.postgresql.org/docs/current/static/rangetypes.html

    | Improve this Doc View Source

    GenerateNonNullSqlLiteral(object)

    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
    protected override string GenerateNonNullSqlLiteral(object value)
    Parameters
    Type Name Description
    object value
    Returns
    Type Description
    string
    Remarks

    See: https://www.postgresql.org/docs/current/static/rangetypes.html

    Implements

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