Files
Umbraco-CMS/src/Umbraco.Core/Persistence/Mappers/MapperForAttribute.cs
Shannon Deminick 75d218d2e3 Updated how mappers for persistence work with the MapperFor attribute and have made BaseMapper public but have
kept all properties, etc.. internal just so that they can be found so we don't have to register them.
Updates unit test to ensure the plugin manager is init'd properly with the 'false' override. Ensures that the base
db test also initializes the plugin manager properly.
2013-03-13 01:09:29 +04:00

19 lines
495 B
C#

using System;
namespace Umbraco.Core.Persistence.Mappers
{
/// <summary>
/// An attribute used to decorate mappers to be associated with entities
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
internal sealed class MapperForAttribute : Attribute
{
public Type EntityType { get; private set; }
public MapperForAttribute(Type entityType)
{
EntityType = entityType;
}
}
}