Class LengthAttribute
Attribute that represents the length of a column
Inheritance
System.Object
System.Attribute
Namespace: Umbraco.Cms.Infrastructure.Persistence.DatabaseAnnotations
Assembly: cs.temp.dll.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public class LengthAttribute : Attribute, _Attribute
Remarks
Used to define the length of fixed sized columns - typically used for nvarchar
Constructors
LengthAttribute(Int32)
Declaration
public LengthAttribute(int length)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | length |
Properties
Length
Gets or sets the length of a column
Declaration
public int Length { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |