Search Results for

    Show / Hide Table of Contents

    Class ConstraintAttribute

    Attribute that represents a db constraint

    Inheritance
    System.Object
    System.Attribute
    Namespace: Umbraco.Cms.Infrastructure.Persistence.DatabaseAnnotations
    Assembly: cs.temp.dll.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property)]
    public class ConstraintAttribute : Attribute, _Attribute

    Properties

    Default

    Gets or sets the Default value

    Declaration
    public object Default { get; set; }
    Property Value
    Type Description
    System.Object

    Name

    Gets or sets the name of the constraint

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    Overrides the default naming of a property constraint: DF_tableName_propertyName

    In This Article
    • Properties
      • Default
      • Name
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX