Class DynamicTypeInfoResolver
public abstract class DynamicTypeInfoResolver : IPgTypeInfoResolver
- Inheritance
-
DynamicTypeInfoResolver
- Implements
- Inherited Members
Methods
CreateCollection(TypeInfoMappingCollection?)
protected static DynamicTypeInfoResolver.DynamicMappingCollection CreateCollection(TypeInfoMappingCollection? baseCollection = null)
Parameters
baseCollectionTypeInfoMappingCollection
Returns
GetMappings(Type?, DataTypeName, PgSerializerOptions)
protected abstract DynamicTypeInfoResolver.DynamicMappingCollection? GetMappings(Type? type, DataTypeName dataTypeName, PgSerializerOptions options)
Parameters
typeTypedataTypeNameDataTypeNameoptionsPgSerializerOptions
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
typeTypeThe clr type being requested.
dataTypeNameDataTypeName?The postgres type being requested.
optionsPgSerializerOptionsUsed 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
dataTypeNameDataTypeNameoptionsPgSerializerOptionselementDataTypeNameDataTypeName
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)