ValidatorBaseValidateFieldValue Method |
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.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax public virtual bool ValidateFieldValue(
IEntityCore involvedEntity,
int fieldIndex,
Object value
)
Public Overridable Function ValidateFieldValue (
involvedEntity As IEntityCore,
fieldIndex As Integer,
value As Object
) As Boolean
Parameters
- involvedEntity
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityCore
The involved entity. - fieldIndex
- Type: SystemInt32
Index of IEntityFieldCore to validate - value
- Type: SystemObject
Value which should be stored in field with index fieldIndex. Will not be null (earlier logic filters out nulls before
a call will be made to this routine).
Return Value
Type:
Boolean
true if the value is valid for the field, false otherwise
Implements
IValidatorValidateFieldValue(IEntityCore, Int32, Object)Remarks Use the entity.SetEntityFieldError() and entity.SetEntityError() methods if you want to set a IDataErrorInfo error string after the
validation.
See Also