2012-10-22 12:52:29 -02:00
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Core.Persistence.DatabaseAnnotations
|
|
|
|
|
{
|
2012-10-23 08:09:01 -02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Attribute that represents the length of a column
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>Used to define the length of fixed sized columns - typically used for nvarchar</remarks>
|
2012-10-22 12:52:29 -02:00
|
|
|
[AttributeUsage(AttributeTargets.Property)]
|
|
|
|
|
public class LengthAttribute : Attribute
|
|
|
|
|
{
|
|
|
|
|
public LengthAttribute(int length)
|
|
|
|
|
{
|
|
|
|
|
Length = length;
|
|
|
|
|
}
|
|
|
|
|
|
2012-10-23 08:09:01 -02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the length of a column
|
|
|
|
|
/// </summary>
|
2012-10-22 12:52:29 -02:00
|
|
|
public int Length { get; private set; }
|
|
|
|
|
}
|
|
|
|
|
}
|