Search Results for

    Show / Hide Table of Contents

    Class NpgsqlArrayTypeMapping

    Abstract base class for PostgreSQL array mappings (i.e. CLR array and .

    Inheritance
    object
    NpgsqlArrayTypeMapping
    NpgsqlArrayArrayTypeMapping
    NpgsqlArrayListTypeMapping
    Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping
    Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
    Syntax
    public abstract class NpgsqlArrayTypeMapping : RelationalTypeMapping
    Remarks

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

    Constructors

    | Improve this Doc View Source

    NpgsqlArrayTypeMapping(RelationalTypeMappingParameters, RelationalTypeMapping, bool)

    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 NpgsqlArrayTypeMapping(RelationalTypeMappingParameters parameters, RelationalTypeMapping elementMapping, bool isElementNullable)
    Parameters
    Type Name Description
    RelationalTypeMappingParameters parameters
    RelationalTypeMapping elementMapping
    bool isElementNullable
    Remarks

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

    Properties

    | Improve this Doc View Source

    ElementMapping

    The relational type mapping used to initialize the array mapping.

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

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

    | Improve this Doc View Source

    IsElementNullable

    Whether the array's element is nullable. This is required since and ElementMapping do not contain nullable reference type information.

    Declaration
    public virtual bool IsElementNullable { get; }
    Property Value
    Type Description
    bool
    Remarks

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

    | Improve this Doc View Source

    NpgsqlDbType

    The database type used by Npgsql.

    Declaration
    public virtual NpgsqlDbType? NpgsqlDbType { get; }
    Property Value
    Type Description
    NpgsqlDbType?
    Remarks

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

    Methods

    | Improve this Doc View Source

    Clone(RelationalTypeMappingParameters, RelationalTypeMapping)

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

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

    | 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/arrays.html

    | Improve this Doc View Source

    Clone(ValueConverter?)

    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 CoreTypeMapping Clone(ValueConverter? converter)
    Parameters
    Type Name Description
    ValueConverter? converter
    Returns
    Type Description
    CoreTypeMapping
    Remarks

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

    | Improve this Doc View Source

    ConfigureParameter(DbParameter)

    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 void ConfigureParameter(DbParameter parameter)
    Parameters
    Type Name Description
    DbParameter parameter
    Remarks

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

    | Improve this Doc View Source

    FlipArrayListClrType(Type)

    Returns a type mapping identical to this one, but over the other CLR array type. That is, convert a CLR array mapping to a List mapping and vice versa.

    Declaration
    public abstract NpgsqlArrayTypeMapping FlipArrayListClrType(Type newType)
    Parameters
    Type Name Description
    Type newType
    Returns
    Type Description
    NpgsqlArrayTypeMapping
    Remarks

    See: https://www.postgresql.org/docs/current/static/arrays.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/arrays.html

    | Improve this Doc View Source

    MakeNonNullable()

    Returns a copy of this type mapping with IsElementNullable set to false.

    Declaration
    public abstract NpgsqlArrayTypeMapping MakeNonNullable()
    Returns
    Type Description
    NpgsqlArrayTypeMapping
    Remarks

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

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