ValidatorBase.ValidateFieldValue 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.2.0.0 (5.2.17.0403)
Syntaxpublic 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.ORMSupportClasses.IEntityCore
The involved entity. - fieldIndex
- Type: System.Int32
Index of IEntityFieldCore to validate - value
- Type: System.Object
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
IValidator.ValidateFieldValue(IEntityCore, Int32, Object)
RemarksUse the entity.SetEntityFieldError() and entity.SetEntityError() methods if you want to set a IDataErrorInfo error string after the
validation.
See Also