UniqueConstraintSaveBehavior constructor
Behavior that handles UniqueConstraintAttribute on a row. It checks each 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, to customize or replace the pre-check.
public UniqueConstraintSaveBehavior(ITextLocalizer localizer)
| parameter | description |
|---|---|
| localizer | Text localizer |
Remarks
Initializes a new instance of the class.
See Also
- interface ITextLocalizer
- class UniqueConstraintSaveBehavior