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
System.Object
NpgsqlTypeHandlerFactory<TDefault>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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. |
Methods
Create(NpgsqlConnection)
Creates a type handler. The provided connection can be examined to modify type handler behavior based on server settings, etc.
Declaration
protected abstract NpgsqlTypeHandler<TDefault> Create(NpgsqlConnection conn)
Parameters
Type | Name | Description |
---|---|---|
NpgsqlConnection | conn |
Returns
Type | Description |
---|---|
NpgsqlTypeHandler<TDefault> |