CoreTypeMapperDependencies Class

Definition

Caution

Use TypeMappingSource

Service dependencies parameter class for CoreTypeMapper

This type is typically used by database providers (and other extensions). It is generally not used in application code.

Do not construct instances of this class directly from either provider or application code as the constructor signature may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.

public sealed class CoreTypeMapperDependencies
[System.Obsolete("Use TypeMappingSource")]
public sealed class CoreTypeMapperDependencies
type CoreTypeMapperDependencies = class
[<System.Obsolete("Use TypeMappingSource")>]
type CoreTypeMapperDependencies = class
Public NotInheritable Class CoreTypeMapperDependencies
Inheritance
CoreTypeMapperDependencies
Attributes

Constructors

CoreTypeMapperDependencies()

Creates the service dependencies parameter object for a CoreTypeMapper.

Do not call this constructor directly from either provider or application code as it may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.

CoreTypeMapperDependencies(IValueConverterSelector)

Creates the service dependencies parameter object for a CoreTypeMapper.

Do not call this constructor directly from either provider or application code as it may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.

Properties

ValueConverterSelector

The registry of known ValueConverters.

Methods

With(IValueConverterSelector)

Clones this dependency parameter object with one service replaced.

Applies to