Search Results for

    Show / Hide Table of Contents

    Class ArrayHandler

    Non-generic base class for all type handlers which handle PostgreSQL arrays. Extend from ArrayHandler<TElement> instead.

    Inheritance
    Object
    NpgsqlTypeHandler
    ArrayHandler
    ArrayHandler<TElement>
    Inherited Members
    NpgsqlTypeHandler.Read<TAny>(NpgsqlReadBuffer, Int32, Boolean, FieldDescription)
    NpgsqlTypeHandler.Read<TAny>(NpgsqlReadBuffer, Int32, FieldDescription)
    NpgsqlTypeHandler.ValidateAndGetLength<TAny>(TAny, NpgsqlLengthCache, NpgsqlParameter)
    NpgsqlTypeHandler.ValidateObjectAndGetLength(Object, NpgsqlLengthCache, NpgsqlParameter)
    NpgsqlTypeHandler.WriteObjectWithLength(Object, NpgsqlWriteBuffer, NpgsqlLengthCache, NpgsqlParameter, Boolean)
    NpgsqlTypeHandler.CreateConversionButNoParamException(Type)
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Npgsql.TypeHandlers
    Assembly: Npgsql.dll
    Syntax
    public abstract class ArrayHandler : NpgsqlTypeHandler
    Remarks

    http://www.postgresql.org/docs/current/static/arrays.html.

    The type handler API allows customizing Npgsql's behavior in powerful ways. However, although it is public, it should be considered somewhat unstable, and may change in breaking ways, including in non-major releases. Use it at your own risk.

    Constructors

    | Improve this Doc

    ArrayHandler(PostgresType)

    Declaration
    protected ArrayHandler(PostgresType arrayPostgresType)
    Parameters
    Type Name Description
    PostgresType arrayPostgresType

    Methods

    | Improve this Doc

    CreateArrayHandler(PostgresArrayType)

    Creates a type handler for arrays of this handler's type.

    Declaration
    public override ArrayHandler CreateArrayHandler(PostgresArrayType arrayBackendType)
    Parameters
    Type Name Description
    PostgresArrayType arrayBackendType
    Returns
    Type Description
    ArrayHandler
    Overrides
    NpgsqlTypeHandler.CreateArrayHandler(PostgresArrayType)
    | Improve this Doc

    CreateRangeHandler(PostgresRangeType)

    Creates a type handler for ranges of this handler's type.

    Declaration
    public override RangeHandler CreateRangeHandler(PostgresRangeType rangeBackendType)
    Parameters
    Type Name Description
    PostgresRangeType rangeBackendType
    Returns
    Type Description
    RangeHandler
    Overrides
    NpgsqlTypeHandler.CreateRangeHandler(PostgresRangeType)
    • Improve this Doc
    In This Article
    Back to top © Copyright 2021 The Npgsql Development Team