using System; namespace Umbraco.Core.Persistence.DatabaseAnnotations { /// /// Attribute that represents a db constraint /// [AttributeUsage(AttributeTargets.Property)] public class ConstraintAttribute : Attribute { /// /// Gets or sets the name of the constraint /// /// /// Overrides the default naming of a property constraint: /// DF_tableName_propertyName /// public string Name { get; set; } /// /// Gets or sets the Default value /// public object Default { get; set; } } }