Class DateMultirangeHandler
Inheritance
DateMultirangeHandler
Assembly: Npgsql.NodaTime.dll
Syntax
public class DateMultirangeHandler : MultirangeHandler<LocalDate>, INpgsqlTypeHandler<NpgsqlRange<LocalDate>[]>, INpgsqlTypeHandler<List<NpgsqlRange<LocalDate>>>, INpgsqlTypeHandler<DateInterval[]>, INpgsqlTypeHandler<List<DateInterval>>
Constructors
DateMultirangeHandler(PostgresMultirangeType, DateRangeHandler)
Declaration
public DateMultirangeHandler(PostgresMultirangeType multirangePostgresType, DateRangeHandler rangeHandler)
Parameters
Methods
GetFieldType(FieldDescription)
Declaration
public override Type GetFieldType(FieldDescription fieldDescription = null)
Parameters
Returns
Overrides
Npgsql.Internal.TypeHandling.NpgsqlTypeHandler<NpgsqlTypes.NpgsqlRange<LocalDate>[]>.GetFieldType(Npgsql.BackendMessages.FieldDescription)
GetProviderSpecificFieldType(FieldDescription)
Declaration
public override Type GetProviderSpecificFieldType(FieldDescription fieldDescription = null)
Parameters
Returns
Overrides
Npgsql.Internal.TypeHandling.NpgsqlTypeHandler<NpgsqlTypes.NpgsqlRange<LocalDate>[]>.GetProviderSpecificFieldType(Npgsql.BackendMessages.FieldDescription)
ReadAsObject(NpgsqlReadBuffer, Int32, Boolean, FieldDescription)
Declaration
public override async ValueTask<object> ReadAsObject(NpgsqlReadBuffer buf, int len, bool async, FieldDescription fieldDescription = null)
Parameters
Returns
Overrides
Npgsql.Internal.TypeHandling.NpgsqlTypeHandler<NpgsqlTypes.NpgsqlRange<LocalDate>[]>.ReadAsObject(Npgsql.Internal.NpgsqlReadBuffer, System.Int32, System.Boolean, Npgsql.BackendMessages.FieldDescription)
ValidateAndGetLength(DateInterval[], ref NpgsqlLengthCache, NpgsqlParameter)
Declaration
public int ValidateAndGetLength(DateInterval[] value, ref NpgsqlLengthCache lengthCache, NpgsqlParameter parameter)
Parameters
Returns
ValidateAndGetLength(List<DateInterval>, ref NpgsqlLengthCache, NpgsqlParameter)
Declaration
public int ValidateAndGetLength(List<DateInterval> value, ref NpgsqlLengthCache lengthCache, NpgsqlParameter parameter)
Parameters
Returns
Write(DateInterval[], NpgsqlWriteBuffer, NpgsqlLengthCache, NpgsqlParameter, Boolean, CancellationToken)
Declaration
public async Task Write(DateInterval[] value, NpgsqlWriteBuffer buf, NpgsqlLengthCache lengthCache, NpgsqlParameter parameter, bool async, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Returns
Write(List<DateInterval>, NpgsqlWriteBuffer, NpgsqlLengthCache, NpgsqlParameter, Boolean, CancellationToken)
Declaration
public async Task Write(List<DateInterval> value, NpgsqlWriteBuffer buf, NpgsqlLengthCache lengthCache, NpgsqlParameter parameter, bool async, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Returns
Explicit Interface Implementations
INpgsqlTypeHandler<DateInterval[]>.Read(NpgsqlReadBuffer, Int32, Boolean, FieldDescription)
Declaration
async ValueTask<DateInterval[]> INpgsqlTypeHandler<DateInterval[]>.Read(NpgsqlReadBuffer buf, int len, bool async, FieldDescription fieldDescription)
Parameters
Returns
INpgsqlTypeHandler<List<DateInterval>>.Read(NpgsqlReadBuffer, Int32, Boolean, FieldDescription)
Declaration
async ValueTask<List<DateInterval>> INpgsqlTypeHandler<List<DateInterval>>.Read(NpgsqlReadBuffer buf, int len, bool async, FieldDescription fieldDescription)
Parameters
Returns
Implements