Search Results for

    Show / Hide Table of Contents

    Class NpgsqlRangeTypeMapping

    The type mapping for PostgreSQL range types.

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

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

    Constructors

    | Improve this Doc View Source

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

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

    | Improve this Doc View Source

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

    Constructs an instance of the NpgsqlRangeTypeMapping class.

    Declaration
    public NpgsqlRangeTypeMapping(string storeType, string? storeTypeSchema, Type clrType, RelationalTypeMapping subtypeMapping, 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.

    RelationalTypeMapping subtypeMapping

    The type mapping for the range subtype.

    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

    NpgsqlRangeTypeMapping(string, Type, RelationalTypeMapping, ISqlGenerationHelper)

    Constructs an instance of the NpgsqlRangeTypeMapping class.

    Declaration
    public NpgsqlRangeTypeMapping(string storeType, Type clrType, RelationalTypeMapping subtypeMapping, ISqlGenerationHelper sqlGenerationHelper)
    Parameters
    Type Name Description
    string storeType

    The database type to map

    Type clrType

    The CLR type to map.

    RelationalTypeMapping subtypeMapping

    The type mapping for the range subtype.

    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

    SubtypeMapping

    The relational type mapping of the range's subtype.

    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

    GenerateEmbeddedNonNullSqlLiteral(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 GenerateEmbeddedNonNullSqlLiteral(object value)
    Parameters
    Type Name Description
    object value
    Returns
    Type Description
    string
    Overrides
    NpgsqlTypeMapping.GenerateEmbeddedNonNullSqlLiteral(object)
    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