Search Results for

    Show / Hide Table of Contents
    View Source

    Class LengthAttribute

    Attribute that represents the length of a column

    Inheritance
    object
    Attribute
    Namespace: Umbraco.Cms.Infrastructure.Persistence.DatabaseAnnotations
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property)]
    public class LengthAttribute : Attribute
    Remarks

    Used to define the length of fixed sized columns - typically used for nvarchar

    Constructors

    View Source

    LengthAttribute(int)

    Initializes a new instance of the LengthAttribute class with the specified maximum length.

    Declaration
    public LengthAttribute(int length)
    Parameters
    Type Name Description
    int length

    The maximum length value for the attribute.

    Properties

    View Source

    Length

    Gets or sets the length of a column

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