Search Results for

    Show / Hide Table of Contents

    Class NpgsqlArrayArrayTypeMapping

    Maps PostgreSQL arrays to .NET arrays. Only single-dimensional arrays are supported.

    Inheritance
    object
    NpgsqlArrayTypeMapping
    NpgsqlArrayArrayTypeMapping
    Inherited Members
    NpgsqlArrayTypeMapping.ElementMapping
    NpgsqlArrayTypeMapping.NpgsqlDbType
    NpgsqlArrayTypeMapping.IsElementNullable
    NpgsqlArrayTypeMapping.Clone(ValueConverter?)
    NpgsqlArrayTypeMapping.Clone(RelationalTypeMappingParameters)
    NpgsqlArrayTypeMapping.GenerateNonNullSqlLiteral(object)
    NpgsqlArrayTypeMapping.ConfigureParameter(DbParameter)
    Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping
    Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
    Syntax
    public class NpgsqlArrayArrayTypeMapping : NpgsqlArrayTypeMapping
    Remarks

    Note that mapping PostgreSQL arrays to .NET is also supported via NpgsqlArrayListTypeMapping.

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

    Constructors

    | Improve this Doc View Source

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

    Note that mapping PostgreSQL arrays to .NET is also supported via NpgsqlArrayListTypeMapping.

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

    | Improve this Doc View Source

    NpgsqlArrayArrayTypeMapping(string, RelationalTypeMapping)

    Creates the default array mapping (i.e. for the single-dimensional CLR array type)

    Declaration
    public NpgsqlArrayArrayTypeMapping(string storeType, RelationalTypeMapping elementMapping)
    Parameters
    Type Name Description
    string storeType

    The database type to map.

    RelationalTypeMapping elementMapping

    The element type mapping.

    Remarks

    Note that mapping PostgreSQL arrays to .NET is also supported via NpgsqlArrayListTypeMapping.

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

    | Improve this Doc View Source

    NpgsqlArrayArrayTypeMapping(Type, RelationalTypeMapping)

    Creates the default array mapping (i.e. for the single-dimensional CLR array type)

    Declaration
    public NpgsqlArrayArrayTypeMapping(Type arrayType, RelationalTypeMapping elementMapping)
    Parameters
    Type Name Description
    Type arrayType

    The array type to map.

    RelationalTypeMapping elementMapping

    The element type mapping.

    Remarks

    Note that mapping PostgreSQL arrays to .NET is also supported via NpgsqlArrayListTypeMapping.

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

    Note that mapping PostgreSQL arrays to .NET is also supported via NpgsqlArrayListTypeMapping.

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

    | Improve this Doc View Source

    FlipArrayListClrType(Type)

    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 NpgsqlArrayTypeMapping FlipArrayListClrType(Type newType)
    Parameters
    Type Name Description
    Type newType
    Returns
    Type Description
    NpgsqlArrayTypeMapping
    Overrides
    NpgsqlArrayTypeMapping.FlipArrayListClrType(Type)
    Remarks

    Note that mapping PostgreSQL arrays to .NET is also supported via NpgsqlArrayListTypeMapping.

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

    | Improve this Doc View Source

    MakeNonNullable()

    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 NpgsqlArrayTypeMapping MakeNonNullable()
    Returns
    Type Description
    NpgsqlArrayTypeMapping
    Overrides
    NpgsqlArrayTypeMapping.MakeNonNullable()
    Remarks

    Note that mapping PostgreSQL arrays to .NET is also supported via NpgsqlArrayListTypeMapping.

    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