Click or drag to resize

IValidator Interface

Interface for validation classes used by IEntityCore implementing classes. Generic

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax
public interface IValidator

The IValidator type exposes the following members.

Methods
  NameDescription
Public methodAssignedToEntity
Called when the implementing object is assinged to entity.Validator.
Public methodUnassignedFromEntity
Called when the implementing object is dereferenced from an assigned entity.
Public methodValidateEntity
General validation method which isn't used by the LLBLGen Pro framework, but can be used by your own code to validate an entity at any given moment.
Public methodValidateEntityAfterLoad
Method to validate the containing entity after it is loaded. This method is called after the entity has been fully loaded.
Public methodValidateEntityAfterSave
Method to validate the containing entity right after the entity's save action has been completed and the entity has been refetched (if applicable). Note for adapter users: if the entity wasn't set to be refetched, take into account that reading properties from the containing entity will result in an OutOfSync exception.
Public methodValidateEntityBeforeDelete
Method to validate the containig entity right beforethe entity's delete action will take place.
Public methodValidateEntityBeforeSave
Method to validate the containing entity right before the save sequence for the entity will start. LLBLGen Pro will call this method right after the containing entity is selected from the save queue to be saved.
Public methodValidateFieldValue
Validates the given EntityFieldCore object on the given fieldIndex with the given value. This routine is called by the Entity's own value validator after the value has passed validation for destination column type and null values.
Top
See Also