Table of Contents

Class DynamicTypeInfoResolver

Namespace
Npgsql.Internal
Assembly
Npgsql.dll
public abstract class DynamicTypeInfoResolver : IPgTypeInfoResolver
Inheritance
DynamicTypeInfoResolver
Implements
Inherited Members

Constructors

DynamicTypeInfoResolver()

protected DynamicTypeInfoResolver()

Methods

CreateCollection(TypeInfoMappingCollection?)

protected static DynamicTypeInfoResolver.DynamicMappingCollection CreateCollection(TypeInfoMappingCollection? baseCollection = null)

Parameters

baseCollection TypeInfoMappingCollection

Returns

DynamicTypeInfoResolver.DynamicMappingCollection

GetMappings(Type?, DataTypeName, PgSerializerOptions)

protected abstract DynamicTypeInfoResolver.DynamicMappingCollection? GetMappings(Type? type, DataTypeName dataTypeName, PgSerializerOptions options)

Parameters

type Type
dataTypeName DataTypeName
options PgSerializerOptions

Returns

DynamicTypeInfoResolver.DynamicMappingCollection

GetTypeInfo(Type?, DataTypeName?, PgSerializerOptions)

public PgTypeInfo? GetTypeInfo(Type? type, DataTypeName? dataTypeName, PgSerializerOptions options)

Parameters

type Type
dataTypeName DataTypeName?
options PgSerializerOptions

Returns

PgTypeInfo

IsArrayDataTypeName(DataTypeName, PgSerializerOptions, out DataTypeName)

protected static bool IsArrayDataTypeName(DataTypeName dataTypeName, PgSerializerOptions options, out DataTypeName elementDataTypeName)

Parameters

dataTypeName DataTypeName
options PgSerializerOptions
elementDataTypeName DataTypeName

Returns

bool

IsArrayLikeType(Type, out Type?)

protected static bool IsArrayLikeType(Type type, out Type? elementType)

Parameters

type Type
elementType Type

Returns

bool

IsTypeOrNullableOfType(Type, Func<Type, bool>, out Type)

protected static bool IsTypeOrNullableOfType(Type type, Func<Type, bool> predicate, out Type matchedType)

Parameters

type Type
predicate Func<Type, bool>
matchedType Type

Returns

bool