Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.21 KB

UniqueAttribute.md

File metadata and controls

24 lines (18 loc) · 1.21 KB

UniqueAttribute class

namespace: Serenity.Data.Mapping   assemblySerenity.Net.Data

Defines a unique constraint on the field

[AttributeUsage(AttributeTargets.Property)]
public class UniqueAttribute : SetFieldFlagsAttribute

Public Members

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.

See Also