Files
Umbraco-CMS/src/Umbraco.Tests/CodeFirst/Attributes/AliasAttribute.cs
T
Morten Christensen ce12bfa80e Adding numeric attribute for testing.
Adding type test for composition implementation.
2012-11-25 19:19:10 -01:00

23 lines
646 B
C#

using System;
namespace Umbraco.Tests.CodeFirst.Attributes
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Interface, AllowMultiple = false, Inherited = true)]
public class AliasAttribute : Attribute
{
public AliasAttribute(string @alias)
{
Alias = alias;
}
/// <summary>
/// Gets or Sets the Alias of the Property
/// </summary>
public string Alias { get; private set; }
/// <summary>
/// Gets or Sets an optional name of the Property
/// </summary>
public string Name { get; set; }
}
}