Search Results for

    Show / Hide Table of Contents
    View Source

    Class MapperForAttribute

    An attribute used to decorate mappers to be associated with entities

    Inheritance
    object
    Attribute
    Namespace: Umbraco.Cms.Infrastructure.Persistence.Mappers
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
    public sealed class MapperForAttribute : Attribute

    Constructors

    View Source

    MapperForAttribute(Type)

    Initializes a new instance of the MapperForAttribute class, specifying the entity type to map.

    Declaration
    public MapperForAttribute(Type entityType)
    Parameters
    Type Name Description
    Type entityType

    The entity type that this attribute applies to.

    Properties

    View Source

    EntityType

    Gets the type of the entity that this mapper is associated with.

    Declaration
    public Type EntityType { get; }
    Property Value
    Type Description
    Type
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX