Click or drag to resize

ValidatorBase Class

Abstract class definition for a validator object, used to validate entity data. This class is the common base class for all generated entitynameValidator classes in the generated code.
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ORMSupportClassesValidatorBase

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntax
[SerializableAttribute]
public abstract class ValidatorBase : IValidator

The ValidatorBase type exposes the following members.

Constructors
  NameDescription
Protected methodValidatorBase
Initializes a new instance of the ValidatorBase class
Top
Methods
  NameDescription
Public methodAssignedToEntity
Called when the implementing object is assinged to entity.Validator.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
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