Search Results for

    Show / Hide Table of Contents

    Class PolygonHandler

    A type handler for the PostgreSQL polygon data type.

    Inheritance
    Object
    NpgsqlTypeHandler
    NpgsqlTypeHandler<NpgsqlPolygon>
    PolygonHandler
    Implements
    INpgsqlTypeHandler<NpgsqlPolygon>
    Inherited Members
    NpgsqlTypeHandler<NpgsqlPolygon>.Read<TAny>(NpgsqlReadBuffer, Int32, Boolean, FieldDescription)
    NpgsqlTypeHandler<NpgsqlPolygon>.Read<TAny>(NpgsqlReadBuffer, Int32, FieldDescription)
    NpgsqlTypeHandler<NpgsqlPolygon>.ValidateAndGetLength<TAny>(TAny, NpgsqlLengthCache, NpgsqlParameter)
    NpgsqlTypeHandler<NpgsqlPolygon>.WriteWithLength<TAny>(TAny, NpgsqlWriteBuffer, NpgsqlLengthCache, NpgsqlParameter, Boolean)
    NpgsqlTypeHandler<NpgsqlPolygon>.ValidateObjectAndGetLength(Object, NpgsqlLengthCache, NpgsqlParameter)
    NpgsqlTypeHandler<NpgsqlPolygon>.WriteObjectWithLength(Object, NpgsqlWriteBuffer, NpgsqlLengthCache, NpgsqlParameter, Boolean)
    NpgsqlTypeHandler<NpgsqlPolygon>.CreateArrayHandler(PostgresArrayType)
    NpgsqlTypeHandler<NpgsqlPolygon>.CreateRangeHandler(PostgresRangeType)
    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.GeometricHandlers
    Assembly: Npgsql.dll
    Syntax
    public class PolygonHandler : NpgsqlTypeHandler<NpgsqlPolygon>, INpgsqlTypeHandler<NpgsqlPolygon>
    Remarks

    See http://www.postgresql.org/docs/current/static/datatype-geometric.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

    PolygonHandler(PostgresType)

    Declaration
    public PolygonHandler(PostgresType postgresType)
    Parameters
    Type Name Description
    PostgresType postgresType

    Methods

    | Improve this Doc

    Read(NpgsqlReadBuffer, Int32, Boolean, FieldDescription)

    Reads a value of type TDefault with the given length from the provided buffer, using either sync or async I/O.

    Declaration
    public override async ValueTask<NpgsqlPolygon> Read(NpgsqlReadBuffer buf, int len, bool async, FieldDescription fieldDescription = null)
    Parameters
    Type Name Description
    NpgsqlReadBuffer buf

    The buffer from which to read.

    Int32 len

    The byte length of the value. The buffer might not contain the full length, requiring I/O to be performed.

    Boolean async

    If I/O is required to read the full length of the value, whether it should be performed synchronously or asynchronously.

    FieldDescription fieldDescription

    Additional PostgreSQL information about the type, such as the length in varchar(30).

    Returns
    Type Description
    ValueTask<NpgsqlPolygon>

    The fully-read value.

    Overrides
    Npgsql.TypeHandling.NpgsqlTypeHandler<NpgsqlTypes.NpgsqlPolygon>.Read(Npgsql.NpgsqlReadBuffer, System.Int32, System.Boolean, Npgsql.BackendMessages.FieldDescription)
    | Improve this Doc

    ValidateAndGetLength(NpgsqlPolygon, ref NpgsqlLengthCache, NpgsqlParameter)

    Called to validate and get the length of a value of a generic NpgsqlParameter<T>.

    Declaration
    public override int ValidateAndGetLength(NpgsqlPolygon value, ref NpgsqlLengthCache lengthCache, NpgsqlParameter parameter)
    Parameters
    Type Name Description
    NpgsqlPolygon value
    NpgsqlLengthCache lengthCache
    NpgsqlParameter parameter
    Returns
    Type Description
    Int32
    Overrides
    Npgsql.TypeHandling.NpgsqlTypeHandler<NpgsqlTypes.NpgsqlPolygon>.ValidateAndGetLength(NpgsqlTypes.NpgsqlPolygon, Npgsql.NpgsqlLengthCache, Npgsql.NpgsqlParameter)
    | Improve this Doc

    Write(NpgsqlPolygon, NpgsqlWriteBuffer, NpgsqlLengthCache, NpgsqlParameter, Boolean)

    Called to write the value of a generic NpgsqlParameter<T>.

    Declaration
    public override async Task Write(NpgsqlPolygon value, NpgsqlWriteBuffer buf, NpgsqlLengthCache lengthCache, NpgsqlParameter parameter, bool async)
    Parameters
    Type Name Description
    NpgsqlPolygon value
    NpgsqlWriteBuffer buf
    NpgsqlLengthCache lengthCache
    NpgsqlParameter parameter
    Boolean async
    Returns
    Type Description
    Task
    Overrides
    Npgsql.TypeHandling.NpgsqlTypeHandler<NpgsqlTypes.NpgsqlPolygon>.Write(NpgsqlTypes.NpgsqlPolygon, Npgsql.NpgsqlWriteBuffer, Npgsql.NpgsqlLengthCache, Npgsql.NpgsqlParameter, System.Boolean)

    Implements

    INpgsqlTypeHandler<T>
    • Improve this Doc
    In This Article
    Back to top © Copyright 2021 The Npgsql Development Team