C# Class Serenity.Services.UniqueFieldSaveBehavior

Inheritance: BaseSaveBehavior, IImplicitBehavior, IFieldBehavior
Mostrar archivo Open project: volkanceylan/Serenity Class Usage Examples

Public Methods

Method Description
ActivateFor ( Row row ) : bool
OnValidateRequest ( ISaveRequestHandler handler ) : void

Private Methods

Method Description
ValidateUniqueConstraint ( ISaveRequestHandler handler, IEnumerable fields, string errorMessage = null, BaseCriteria groupCriteria = null ) : void

Method Details

ActivateFor() public method

public ActivateFor ( Row row ) : bool
row Serenity.Data.Row
return bool

OnValidateRequest() public method

public OnValidateRequest ( ISaveRequestHandler handler ) : void
handler ISaveRequestHandler
return void