Search Results for

    Show / Hide Table of Contents

    Class TypeInfoMappingCollection

    Inheritance
    object
    TypeInfoMappingCollection
    Namespace: Npgsql.Internal
    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
    Type Name Description
    IEnumerable<><TypeInfoMapping> items
    | Improve this Doc View Source

    TypeInfoMappingCollection(TypeInfoMappingCollection)

    Declaration
    public TypeInfoMappingCollection(TypeInfoMappingCollection baseCollection)
    Parameters
    Type Name Description
    TypeInfoMappingCollection baseCollection
    | 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
    Type Description
    IReadOnlyList<><TypeInfoMapping>

    Methods

    | Improve this Doc View Source

    Add(TypeInfoMapping)

    Declaration
    public void Add(TypeInfoMapping mapping)
    Parameters
    Type Name Description
    TypeInfoMapping mapping
    | 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 Name Description
    TypeInfoMapping elementMapping
    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
    Type Name Description
    TypeInfoMapping elementMapping
    Func<, ><PgSerializerOptions, Func<, ><PgConverterResolution, PgConverter>> elementToArrayConverterFactory
    | 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
    Type Name Description
    string elementDataTypeName
    Func<, ><PgSerializerOptions, Func<, ><PgConverterResolution, PgConverter>> elementToArrayConverterFactory
    | Improve this Doc View Source

    AddRange(TypeInfoMappingCollection)

    Declaration
    public void AddRange(TypeInfoMappingCollection collection)
    Parameters
    Type Name Description
    TypeInfoMappingCollection collection
    | 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 Name Description
    TypeInfoMapping elementMapping
    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 Name Description
    TypeInfoMapping elementMapping
    TypeInfoMapping nullableElementMapping
    bool suppressObjectMapping
    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 Name Description
    TypeInfoMapping elementMapping
    TypeInfoMapping nullableElementMapping
    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 Name Description
    string dataTypeName
    TypeInfoFactory createInfo
    MatchRequirement matchRequirement
    Type Parameters
    Name Description
    T
    | 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
    Name Description
    T
    | 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 Name Description
    string dataTypeName
    TypeInfoFactory createInfo
    Func<, ><TypeInfoMapping, TypeInfoMapping>? configure
    Type Parameters
    Name Description
    T
    | 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 Name Description
    string dataTypeName
    TypeInfoFactory createInfo
    MatchRequirement matchRequirement
    Type Parameters
    Name Description
    T
    | 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
    Name Description
    T
    | 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 Name Description
    string dataTypeName
    TypeInfoFactory createInfo
    Func<, ><TypeInfoMapping, TypeInfoMapping>? configure
    Type Parameters
    Name Description
    T
    | 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 Name Description
    TypeInfoMapping elementMapping
    TypeInfoMapping nullableElementMapping
    bool suppressObjectMapping
    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 Name Description
    TypeInfoMapping elementMapping
    TypeInfoMapping nullableElementMapping
    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 Name Description
    string dataTypeName
    TypeInfoFactory createInfo
    MatchRequirement matchRequirement
    Type Parameters
    Name Description
    T
    | 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
    Name Description
    T
    | 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 Name Description
    string dataTypeName
    TypeInfoFactory createInfo
    Func<, ><TypeInfoMapping, TypeInfoMapping>? configure
    Type Parameters
    Name Description
    T
    | 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 Name Description
    string dataTypeName
    TypeInfoFactory createInfo
    MatchRequirement matchRequirement
    Type Parameters
    Name Description
    T
    | 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
    Name Description
    T
    | 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 Name Description
    string dataTypeName
    TypeInfoFactory createInfo
    Func<, ><TypeInfoMapping, TypeInfoMapping>? configure
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Find(Type?, DataTypeName?, PgSerializerOptions)

    Declaration
    public PgTypeInfo? Find(Type? type, DataTypeName? dataTypeName, PgSerializerOptions options)
    Parameters
    Type Name Description
    Type? type
    DataTypeName? dataTypeName
    PgSerializerOptions options
    Returns
    Type Description
    PgTypeInfo
    | 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
    Type Description
    bool
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team