Class TypeInfoMappingCollection
Inheritance
object
TypeInfoMappingCollection
Assembly: Npgsql.dll
Syntax
public sealed class TypeInfoMappingCollection
Constructors
|
Improve this Doc
View Source
TypeInfoMappingCollection()
Declaration
public TypeInfoMappingCollection()
|
Improve this Doc
View Source
TypeInfoMappingCollection(IEnumerable<TypeInfoMapping>)
Declaration
public TypeInfoMappingCollection(IEnumerable<TypeInfoMapping> items)
Parameters
|
Improve this Doc
View Source
TypeInfoMappingCollection(TypeInfoMappingCollection)
Declaration
public TypeInfoMappingCollection(TypeInfoMappingCollection baseCollection)
Parameters
|
Improve this Doc
View Source
TypeInfoMappingCollection(int)
Declaration
public TypeInfoMappingCollection(int capacity = 0)
Parameters
Type |
Name |
Description |
int |
capacity |
|
Properties
|
Improve this Doc
View Source
Items
Declaration
public IReadOnlyList<TypeInfoMapping> Items { get; }
Property Value
Methods
|
Improve this Doc
View Source
Add(TypeInfoMapping)
Declaration
public void Add(TypeInfoMapping mapping)
Parameters
|
Improve this Doc
View Source
AddArrayType<TElement>(TypeInfoMapping, bool)
Declaration
public void AddArrayType<TElement>(TypeInfoMapping elementMapping, bool suppressObjectMapping) where TElement : class
Parameters
Type |
Name |
Description |
TypeInfoMapping |
elementMapping |
|
bool |
suppressObjectMapping |
|
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddArrayType<TElement>(TypeInfoMapping)
Declaration
public void AddArrayType<TElement>(TypeInfoMapping elementMapping) where TElement : class
Parameters
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddArrayType<TElement>(string, bool)
Declaration
public void AddArrayType<TElement>(string elementDataTypeName, bool suppressObjectMapping) where TElement : class
Parameters
Type |
Name |
Description |
string |
elementDataTypeName |
|
bool |
suppressObjectMapping |
|
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddArrayType<TElement>(string)
Declaration
public void AddArrayType<TElement>(string elementDataTypeName) where TElement : class
Parameters
Type |
Name |
Description |
string |
elementDataTypeName |
|
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddPolymorphicResolverArrayType(TypeInfoMapping, Func<PgSerializerOptions, Func<PgConverterResolution, PgConverter>>)
Declaration
public void AddPolymorphicResolverArrayType(TypeInfoMapping elementMapping, Func<PgSerializerOptions, Func<PgConverterResolution, PgConverter>> elementToArrayConverterFactory)
Parameters
|
Improve this Doc
View Source
AddPolymorphicResolverArrayType(string, Func<PgSerializerOptions, Func<PgConverterResolution, PgConverter>>)
Declaration
public void AddPolymorphicResolverArrayType(string elementDataTypeName, Func<PgSerializerOptions, Func<PgConverterResolution, PgConverter>> elementToArrayConverterFactory)
Parameters
|
Improve this Doc
View Source
AddRange(TypeInfoMappingCollection)
Declaration
public void AddRange(TypeInfoMappingCollection collection)
Parameters
|
Improve this Doc
View Source
AddResolverArrayType<TElement>(TypeInfoMapping, bool)
Declaration
public void AddResolverArrayType<TElement>(TypeInfoMapping elementMapping, bool suppressObjectMapping) where TElement : class
Parameters
Type |
Name |
Description |
TypeInfoMapping |
elementMapping |
|
bool |
suppressObjectMapping |
|
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddResolverArrayType<TElement>(TypeInfoMapping)
Declaration
public void AddResolverArrayType<TElement>(TypeInfoMapping elementMapping) where TElement : class
Parameters
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddResolverArrayType<TElement>(string, bool)
Declaration
public void AddResolverArrayType<TElement>(string elementDataTypeName, bool suppressObjectMapping) where TElement : class
Parameters
Type |
Name |
Description |
string |
elementDataTypeName |
|
bool |
suppressObjectMapping |
|
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddResolverArrayType<TElement>(string)
Declaration
public void AddResolverArrayType<TElement>(string elementDataTypeName) where TElement : class
Parameters
Type |
Name |
Description |
string |
elementDataTypeName |
|
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddResolverStructArrayType<TElement>(TypeInfoMapping, TypeInfoMapping, bool)
Declaration
public void AddResolverStructArrayType<TElement>(TypeInfoMapping elementMapping, TypeInfoMapping nullableElementMapping, bool suppressObjectMapping) where TElement : struct
Parameters
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddResolverStructArrayType<TElement>(TypeInfoMapping, TypeInfoMapping)
Declaration
public void AddResolverStructArrayType<TElement>(TypeInfoMapping elementMapping, TypeInfoMapping nullableElementMapping) where TElement : struct
Parameters
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddResolverStructArrayType<TElement>(string, bool)
Declaration
public void AddResolverStructArrayType<TElement>(string elementDataTypeName, bool suppressObjectMapping) where TElement : struct
Parameters
Type |
Name |
Description |
string |
elementDataTypeName |
|
bool |
suppressObjectMapping |
|
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddResolverStructArrayType<TElement>(string)
Declaration
public void AddResolverStructArrayType<TElement>(string elementDataTypeName) where TElement : struct
Parameters
Type |
Name |
Description |
string |
elementDataTypeName |
|
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddResolverStructType<T>(string, TypeInfoFactory, MatchRequirement)
Declaration
public void AddResolverStructType<T>(string dataTypeName, TypeInfoFactory createInfo, MatchRequirement matchRequirement) where T : struct
Parameters
Type Parameters
|
Improve this Doc
View Source
AddResolverStructType<T>(string, TypeInfoFactory, bool)
Declaration
public void AddResolverStructType<T>(string dataTypeName, TypeInfoFactory createInfo, bool isDefault = false) where T : struct
Parameters
Type |
Name |
Description |
string |
dataTypeName |
|
TypeInfoFactory |
createInfo |
|
bool |
isDefault |
|
Type Parameters
|
Improve this Doc
View Source
AddResolverStructType<T>(string, TypeInfoFactory, Func<TypeInfoMapping, TypeInfoMapping>?)
Declaration
public void AddResolverStructType<T>(string dataTypeName, TypeInfoFactory createInfo, Func<TypeInfoMapping, TypeInfoMapping>? configure) where T : struct
Parameters
Type Parameters
|
Improve this Doc
View Source
AddResolverType<T>(string, TypeInfoFactory, MatchRequirement)
Declaration
public void AddResolverType<T>(string dataTypeName, TypeInfoFactory createInfo, MatchRequirement matchRequirement) where T : class
Parameters
Type Parameters
|
Improve this Doc
View Source
AddResolverType<T>(string, TypeInfoFactory, bool)
Declaration
public void AddResolverType<T>(string dataTypeName, TypeInfoFactory createInfo, bool isDefault = false) where T : class
Parameters
Type |
Name |
Description |
string |
dataTypeName |
|
TypeInfoFactory |
createInfo |
|
bool |
isDefault |
|
Type Parameters
|
Improve this Doc
View Source
AddResolverType<T>(string, TypeInfoFactory, Func<TypeInfoMapping, TypeInfoMapping>?)
Declaration
public void AddResolverType<T>(string dataTypeName, TypeInfoFactory createInfo, Func<TypeInfoMapping, TypeInfoMapping>? configure) where T : class
Parameters
Type Parameters
|
Improve this Doc
View Source
AddStructArrayType<TElement>(TypeInfoMapping, TypeInfoMapping, bool)
Declaration
public void AddStructArrayType<TElement>(TypeInfoMapping elementMapping, TypeInfoMapping nullableElementMapping, bool suppressObjectMapping) where TElement : struct
Parameters
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddStructArrayType<TElement>(TypeInfoMapping, TypeInfoMapping)
Declaration
public void AddStructArrayType<TElement>(TypeInfoMapping elementMapping, TypeInfoMapping nullableElementMapping) where TElement : struct
Parameters
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddStructArrayType<TElement>(string, bool)
Declaration
public void AddStructArrayType<TElement>(string elementDataTypeName, bool suppressObjectMapping) where TElement : struct
Parameters
Type |
Name |
Description |
string |
elementDataTypeName |
|
bool |
suppressObjectMapping |
|
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddStructArrayType<TElement>(string)
Declaration
public void AddStructArrayType<TElement>(string elementDataTypeName) where TElement : struct
Parameters
Type |
Name |
Description |
string |
elementDataTypeName |
|
Type Parameters
Name |
Description |
TElement |
|
|
Improve this Doc
View Source
AddStructType<T>(string, TypeInfoFactory, MatchRequirement)
Declaration
public void AddStructType<T>(string dataTypeName, TypeInfoFactory createInfo, MatchRequirement matchRequirement) where T : struct
Parameters
Type Parameters
|
Improve this Doc
View Source
AddStructType<T>(string, TypeInfoFactory, bool)
Declaration
public void AddStructType<T>(string dataTypeName, TypeInfoFactory createInfo, bool isDefault = false) where T : struct
Parameters
Type |
Name |
Description |
string |
dataTypeName |
|
TypeInfoFactory |
createInfo |
|
bool |
isDefault |
|
Type Parameters
|
Improve this Doc
View Source
AddStructType<T>(string, TypeInfoFactory, Func<TypeInfoMapping, TypeInfoMapping>?)
Declaration
public void AddStructType<T>(string dataTypeName, TypeInfoFactory createInfo, Func<TypeInfoMapping, TypeInfoMapping>? configure) where T : struct
Parameters
Type Parameters
|
Improve this Doc
View Source
AddType<T>(string, TypeInfoFactory, MatchRequirement)
Declaration
public void AddType<T>(string dataTypeName, TypeInfoFactory createInfo, MatchRequirement matchRequirement) where T : class
Parameters
Type Parameters
|
Improve this Doc
View Source
AddType<T>(string, TypeInfoFactory, bool)
Declaration
public void AddType<T>(string dataTypeName, TypeInfoFactory createInfo, bool isDefault = false) where T : class
Parameters
Type |
Name |
Description |
string |
dataTypeName |
|
TypeInfoFactory |
createInfo |
|
bool |
isDefault |
|
Type Parameters
|
Improve this Doc
View Source
AddType<T>(string, TypeInfoFactory, Func<TypeInfoMapping, TypeInfoMapping>?)
Declaration
public void AddType<T>(string dataTypeName, TypeInfoFactory createInfo, Func<TypeInfoMapping, TypeInfoMapping>? configure) where T : class
Parameters
Type Parameters
|
Improve this Doc
View Source
Find(Type?, DataTypeName?, PgSerializerOptions)
Declaration
public PgTypeInfo? Find(Type? type, DataTypeName? dataTypeName, PgSerializerOptions options)
Parameters
Returns
|
Improve this Doc
View Source
IsArrayLikeType(Type, out Type?)
Declaration
public static bool IsArrayLikeType(Type type, out Type? elementType)
Parameters
Type |
Name |
Description |
Type |
type |
|
Type? |
elementType |
|
Returns