Search Results for

    Show / Hide Table of Contents
    View Source

    Class ConstraintAttribute

    Attribute that represents a db constraint

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

    Properties

    View Source

    Default

    Gets or sets the Default value

    Declaration
    public object? Default { get; set; }
    Property Value
    Type Description
    object
    View Source

    Name

    Gets or sets the name of the constraint

    Declaration
    public string? Name { get; set; }
    Property Value
    Type Description
    string
    Remarks

    Overrides the default naming of a property constraint: DF_tableName_propertyName

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX