Interface IMapperCollection
Defines a collection of mapper instances used for mapping between database entities and domain models in persistence operations.
Namespace: Umbraco.Cms.Infrastructure.Persistence.Mappers
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface IMapperCollection : IBuilderCollection<BaseMapper>
Properties
View Sourcethis[Type]
Gets the BaseMapper instance associated with the specified System.Type.
Declaration
BaseMapper this[Type type] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The System.Type for which to retrieve the mapper. |
Property Value
| Type | Description |
|---|---|
| BaseMapper | The BaseMapper instance corresponding to the specified type. |
Methods
View SourceTryGetMapper(Type, out BaseMapper)
Attempts to retrieve the mapper associated with the specified type.
Declaration
bool TryGetMapper(Type type, out BaseMapper mapper)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type for which to retrieve the mapper. |
| BaseMapper | mapper | When this method returns, contains the mapper associated with |
Returns
| Type | Description |
|---|---|
| bool |
|