# Class DynamicTypeInfoResolver.DynamicMappingCollection

Namespace
  Npgsql.Internal

Assembly
  Npgsql.dll

    [RequiresDynamicCode("A dynamic type info resolver may need to construct a generic converter for a statically unknown type.")]
    protected class DynamicTypeInfoResolver.DynamicMappingCollection

Inheritance
  object
  DynamicTypeInfoResolver.DynamicMappingCollection

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## Methods

### AddArrayMapping(Type, string)

    public DynamicTypeInfoResolver.DynamicMappingCollection AddArrayMapping(Type elementType, string dataTypeName)

#### Parameters

`elementType` Type
`dataTypeName` string

#### Returns

DynamicTypeInfoResolver.DynamicMappingCollection

### AddMapping(Type, string, TypeInfoFactory, Func<TypeInfoMapping, TypeInfoMapping>?)

    public DynamicTypeInfoResolver.DynamicMappingCollection AddMapping(Type type, string dataTypeName, TypeInfoFactory factory, Func<TypeInfoMapping, TypeInfoMapping>? configureMapping = null)

#### Parameters

`type` Type
`dataTypeName` string
`factory` TypeInfoFactory
`configureMapping` Func<TypeInfoMapping, TypeInfoMapping>

#### Returns

DynamicTypeInfoResolver.DynamicMappingCollection

### AddResolverArrayMapping(Type, string)

    public DynamicTypeInfoResolver.DynamicMappingCollection AddResolverArrayMapping(Type elementType, string dataTypeName)

#### Parameters

`elementType` Type
`dataTypeName` string

#### Returns

DynamicTypeInfoResolver.DynamicMappingCollection

### AddResolverMapping(Type, string, TypeInfoFactory, Func<TypeInfoMapping, TypeInfoMapping>?)

    public DynamicTypeInfoResolver.DynamicMappingCollection AddResolverMapping(Type type, string dataTypeName, TypeInfoFactory factory, Func<TypeInfoMapping, TypeInfoMapping>? configureMapping = null)

#### Parameters

`type` Type
`dataTypeName` string
`factory` TypeInfoFactory
`configureMapping` Func<TypeInfoMapping, TypeInfoMapping>

#### Returns

DynamicTypeInfoResolver.DynamicMappingCollection

### ToTypeInfoMappingCollection()

    public TypeInfoMappingCollection ToTypeInfoMappingCollection()

#### Returns

TypeInfoMappingCollection