Files
Umbraco-CMS/src/Umbraco.Infrastructure/Persistence/DatabaseAnnotations/ConstraintAttribute.cs
Mole 5bd8e32279 Align namespaces in Persistence
Made everything except for repository interface be in the Umbraco.Cms.Infrastructure.Persistence namespace
2021-02-12 13:36:50 +01:00

26 lines
708 B
C#

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