Class DynamicTypeInfoResolver
public abstract class DynamicTypeInfoResolver : IPgTypeInfoResolver
- Inheritance
-
DynamicTypeInfoResolver
- Implements
- Inherited Members
Methods
CreateCollection(TypeInfoMappingCollection?)
protected static DynamicTypeInfoResolver.DynamicMappingCollection CreateCollection(TypeInfoMappingCollection? baseCollection = null)
Parameters
baseCollection
TypeInfoMappingCollection
Returns
GetMappings(Type?, DataTypeName, PgSerializerOptions)
protected abstract DynamicTypeInfoResolver.DynamicMappingCollection? GetMappings(Type? type, DataTypeName dataTypeName, PgSerializerOptions options)
Parameters
type
TypedataTypeName
DataTypeNameoptions
PgSerializerOptions
Returns
GetTypeInfo(Type?, DataTypeName?, PgSerializerOptions)
Resolve a type info for a given type and data type name, at least one value will be non-null.
public PgTypeInfo? GetTypeInfo(Type? type, DataTypeName? dataTypeName, PgSerializerOptions options)
Parameters
type
TypeThe clr type being requested.
dataTypeName
DataTypeName?The postgres type being requested.
options
PgSerializerOptionsUsed for configuration state and Npgsql type info or PostgreSQL type catalog lookups.
Returns
- PgTypeInfo
A result, or null if there was no match.
IsArrayDataTypeName(DataTypeName, PgSerializerOptions, out DataTypeName)
protected static bool IsArrayDataTypeName(DataTypeName dataTypeName, PgSerializerOptions options, out DataTypeName elementDataTypeName)
Parameters
dataTypeName
DataTypeNameoptions
PgSerializerOptionselementDataTypeName
DataTypeName
Returns
IsArrayLikeType(Type, out Type?)
protected static bool IsArrayLikeType(Type type, out Type? elementType)
Parameters
Returns
IsTypeOrNullableOfType(Type, Func<Type, bool>, out Type)
protected static bool IsTypeOrNullableOfType(Type type, Func<Type, bool> predicate, out Type matchedType)