Class PgConverter<T>
public abstract class PgConverter<T> : PgConverter
Type Parameters
T
- Inheritance
-
PgConverter<T>
- Derived
- Inherited Members
Methods
GetSize(SizeContext, T, ref object?)
public abstract Size GetSize(SizeContext context, T value, ref object? writeState)
Parameters
context
SizeContextvalue
TwriteState
object
Returns
IsDbNull(T?, ref object?)
public bool IsDbNull(T? value, ref object? writeState)
Parameters
value
TwriteState
object
Returns
IsDbNullValue(T?, ref object?)
protected virtual bool IsDbNullValue(T? value, ref object? writeState)
Parameters
value
TwriteState
object
Returns
Read(PgReader)
public abstract T Read(PgReader reader)
Parameters
reader
PgReader
Returns
- T
ReadAsync(PgReader, CancellationToken)
public abstract ValueTask<T> ReadAsync(PgReader reader, CancellationToken cancellationToken = default)
Parameters
reader
PgReadercancellationToken
CancellationToken
Returns
- ValueTask<T>
Write(PgWriter, T)
public abstract void Write(PgWriter writer, T value)
Parameters
writer
PgWritervalue
T
WriteAsync(PgWriter, T, CancellationToken)
public abstract ValueTask WriteAsync(PgWriter writer, T value, CancellationToken cancellationToken = default)
Parameters
writer
PgWritervalue
TcancellationToken
CancellationToken