UniqueFieldSaveBehavior constructor
Behavior that handles UniqueAttribute on a single field. It checks the unique constraint before save (unless CheckBeforeSave is disabled) by running an existence query. Override BuildUniqueConstraintQuery in a derived behavior, or add your own behavior and set DisableDefaultBehavior on the field, to customize or replace the pre-check.
public UniqueFieldSaveBehavior(ITextLocalizer localizer)
| parameter | description |
|---|---|
| localizer | Text localizer |
Remarks
Initializes a new instance of the class.
See Also
- interface ITextLocalizer
- class UniqueFieldSaveBehavior