Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    this[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 Source

    TryGetMapper(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 type if found; otherwise, null.

    Returns
    Type Description
    bool

    true if a mapper for the specified type was found; otherwise, false.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX