Search Results for

    Show / Hide Table of Contents

    Class NpgsqlTypeHandlerFactory<TDefault>

    Base class for all type handler factories, which construct type handlers that know how to read and write CLR types from/to PostgreSQL types. Type handler factories are set up via NpgsqlTypeMapping in either the global or connection-specific type mapper.

    Inheritance
    Object
    NpgsqlTypeHandlerFactory
    NpgsqlTypeHandlerFactory<TDefault>
    GeoJSONHandlerFactory
    JsonbHandlerFactory
    JsonHandlerFactory
    LegacyPostgisHandlerFactory
    NetTopologySuiteHandlerFactory
    DateHandlerFactory
    IntervalHandlerFactory
    TimeHandlerFactory
    TimestampHandlerFactory
    TimestampTzHandlerFactory
    TimeTzHandlerFactory
    PostgisRawHandlerFactory
    DateHandlerFactory
    IntervalHandlerFactory
    TimeHandlerFactory
    TimestampHandlerFactory
    TimestampTzHandlerFactory
    TimeTzHandlerFactory
    HstoreHandlerFactory
    JsonbHandlerFactory
    JsonHandlerFactory
    TextHandlerFactory
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Npgsql.TypeHandling
    Assembly: Npgsql.dll
    Syntax
    public abstract class NpgsqlTypeHandlerFactory<TDefault> : NpgsqlTypeHandlerFactory
    Type Parameters
    Name Description
    TDefault

    The default CLR type that handlers produced by this factory will read and write.

    Properties

    | Improve this Doc

    DefaultValueType

    The default CLR type that handlers produced by this factory will read and write.

    Declaration
    public override Type DefaultValueType { get; }
    Property Value
    Type Description
    Type
    Overrides
    NpgsqlTypeHandlerFactory.DefaultValueType

    Methods

    | Improve this Doc

    Create(PostgresType, NpgsqlConnection)

    Creates a type handler.

    Declaration
    public abstract NpgsqlTypeHandler<TDefault> Create(PostgresType pgType, NpgsqlConnection conn)
    Parameters
    Type Name Description
    PostgresType pgType
    NpgsqlConnection conn
    Returns
    Type Description
    NpgsqlTypeHandler<TDefault>
    | Improve this Doc

    CreateNonGeneric(PostgresType, NpgsqlConnection)

    Creates a type handler.

    Declaration
    public override NpgsqlTypeHandler CreateNonGeneric(PostgresType pgType, NpgsqlConnection conn)
    Parameters
    Type Name Description
    PostgresType pgType
    NpgsqlConnection conn
    Returns
    Type Description
    NpgsqlTypeHandler
    Overrides
    NpgsqlTypeHandlerFactory.CreateNonGeneric(PostgresType, NpgsqlConnection)

    See Also

    NpgsqlTypeMapping
    GlobalTypeMapper
    TypeMapper
    • Improve this Doc
    In This Article
    Back to top © Copyright 2021 The Npgsql Development Team