Table of Contents

Class PgSerializerOptions

Namespace
Npgsql.Internal
Assembly
Npgsql.dll
public sealed class PgSerializerOptions
Inheritance
PgSerializerOptions
Inherited Members

Properties

ArrayNullabilityMode

public ArrayNullabilityMode ArrayNullabilityMode { get; init; }

Property Value

ArrayNullabilityMode

DefaultNameTranslator

public INpgsqlNameTranslator DefaultNameTranslator { get; init; }

Property Value

INpgsqlNameTranslator

EnableDateTimeInfinityConversions

public bool EnableDateTimeInfinityConversions { get; init; }

Property Value

bool

TextEncoding

public Encoding TextEncoding { get; init; }

Property Value

Encoding

TimeZone

public string TimeZone { get; }

Property Value

string

TypeInfoResolver

public required IPgTypeInfoResolver TypeInfoResolver { get; init; }

Property Value

IPgTypeInfoResolver

UnknownPgType

public PostgresType UnknownPgType { get; }

Property Value

PostgresType

WellKnownTextTypes

public static Type[] WellKnownTextTypes { get; }

Property Value

Type[]

Methods

GetArrayElementTypeId(PgTypeId)

public PgTypeId GetArrayElementTypeId(PgTypeId arrayTypeId)

Parameters

arrayTypeId PgTypeId

Returns

PgTypeId

GetArrayTypeId(PgTypeId)

public PgTypeId GetArrayTypeId(PgTypeId elementTypeId)

Parameters

elementTypeId PgTypeId

Returns

PgTypeId

GetDataTypeName(PgTypeId)

public DataTypeName GetDataTypeName(PgTypeId pgTypeId)

Parameters

pgTypeId PgTypeId

Returns

DataTypeName

GetDefaultTypeInfo(PgTypeId)

public PgTypeInfo? GetDefaultTypeInfo(PgTypeId pgTypeId)

Parameters

pgTypeId PgTypeId

Returns

PgTypeInfo

GetDefaultTypeInfo(PostgresType)

public PgTypeInfo? GetDefaultTypeInfo(PostgresType pgType)

Parameters

pgType PostgresType

Returns

PgTypeInfo

GetMultirangeElementTypeId(PgTypeId)

public PgTypeId GetMultirangeElementTypeId(PgTypeId multirangeTypeId)

Parameters

multirangeTypeId PgTypeId

Returns

PgTypeId

GetMultirangeTypeId(PgTypeId)

public PgTypeId GetMultirangeTypeId(PgTypeId rangeTypeId)

Parameters

rangeTypeId PgTypeId

Returns

PgTypeId

GetObjectOrDefaultTypeInfo(PgTypeId)

public PgTypeInfo? GetObjectOrDefaultTypeInfo(PgTypeId pgTypeId)

Parameters

pgTypeId PgTypeId

Returns

PgTypeInfo

GetObjectOrDefaultTypeInfo(PostgresType)

public PgTypeInfo? GetObjectOrDefaultTypeInfo(PostgresType pgType)

Parameters

pgType PostgresType

Returns

PgTypeInfo

GetRangeSubtypeTypeId(PgTypeId)

public PgTypeId GetRangeSubtypeTypeId(PgTypeId rangeTypeId)

Parameters

rangeTypeId PgTypeId

Returns

PgTypeId

GetRangeTypeId(PgTypeId)

public PgTypeId GetRangeTypeId(PgTypeId subtypeTypeId)

Parameters

subtypeTypeId PgTypeId

Returns

PgTypeId

GetTypeInfo(Type, PostgresType)

public PgTypeInfo? GetTypeInfo(Type type, PostgresType pgType)

Parameters

type Type
pgType PostgresType

Returns

PgTypeInfo

GetTypeInfo(Type, PgTypeId?)

public PgTypeInfo? GetTypeInfo(Type type, PgTypeId? pgTypeId = null)

Parameters

type Type
pgTypeId PgTypeId?

Returns

PgTypeInfo

TryGetDataTypeName(PgTypeId, out DataTypeName)

public bool TryGetDataTypeName(PgTypeId pgTypeId, out DataTypeName dataTypeName)

Parameters

pgTypeId PgTypeId
dataTypeName DataTypeName

Returns

bool