2018-06-29 19:52:40 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
2021-02-12 13:36:50 +01:00
|
|
|
|
namespace Umbraco.Cms.Infrastructure.Persistence.DatabaseAnnotations
|
2018-06-29 19:52:40 +02:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Attribute that represents the Null-setting of a column
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>
|
|
|
|
|
|
/// This should only be used for Columns that can be Null.
|
|
|
|
|
|
/// By convention the Columns will be "NOT NULL".
|
|
|
|
|
|
/// </remarks>
|
|
|
|
|
|
[AttributeUsage(AttributeTargets.Property)]
|
|
|
|
|
|
public class NullSettingAttribute : Attribute
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the <see cref="NullSettings"/> for a column
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public NullSettings NullSetting { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|