namespace: Serenity.Data.Mapping assembly: Serenity.Net.Data
Defines a unique constraint on the field
[AttributeUsage(AttributeTargets.Property)]
public class UniqueAttribute : SetFieldFlagsAttribute
name | description |
---|---|
UniqueAttribute() | Initializes a new instance of the UniqueAttribute class. |
CheckBeforeSave { get; set; } | Gets or sets a value indicating whether to check this constraint before save. |
ErrorMessage { get; set; } | Gets or sets the error message. |
IgnoreDeleted { get; set; } | Gets or sets a value indicating whether to ignore deleted records. |
Name { get; set; } | Gets or sets the name of the constraint. Not used. |
- class SetFieldFlagsAttribute
- Source: UniqueAttribute.cs