Search Results for

    Show / Hide Table of Contents

    Class TextHandlerFactory

    A factory for type handlers for PostgreSQL character data types (text, char, varchar, xml...).

    Inheritance
    Object
    NpgsqlTypeHandlerFactory
    NpgsqlTypeHandlerFactory<String>
    TextHandlerFactory
    Inherited Members
    NpgsqlTypeHandlerFactory<String>.CreateNonGeneric(PostgresType, NpgsqlConnection)
    NpgsqlTypeHandlerFactory<String>.DefaultValueType
    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 class TextHandlerFactory : NpgsqlTypeHandlerFactory<string>
    Remarks

    See https://www.postgresql.org/docs/current/datatype-character.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.

    Methods

    Create(PostgresType, NpgsqlConnection)

    Creates a type handler.

    Declaration
    public override NpgsqlTypeHandler<string> Create(PostgresType pgType, NpgsqlConnection conn)
    Parameters
    Type Name Description
    PostgresType pgType
    NpgsqlConnection conn
    Returns
    Type Description
    NpgsqlTypeHandler<String>
    Overrides
    Npgsql.TypeHandling.NpgsqlTypeHandlerFactory<System.String>.Create(Npgsql.PostgresTypes.PostgresType, Npgsql.NpgsqlConnection)
    In This Article
    Back to top © Copyright 2022 The Npgsql Development Team