IValidatorValidateFieldValue 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.5.0.0 (5.5.18.1019)
Syntax bool ValidateFieldValue(
IEntityCore involvedEntity,
int fieldIndex,
Object value
)
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
Remarks Use the entity.SetEntityFieldError() and entity.SetEntityError() methods if you want to set a IDataErrorInfo error string after the
validation.
See Also