EntityCoreTFieldsOnFieldValueChanged Method |
Method which is called right after a field's value has been changed. There are a couple of methods called in the process of setting a
field's value. This particular method is solely there to act on a field's value set action. It doesn't
raise an event, though it receives the old and new value of the field. Not called if a fieldvalue set action failed. This method is
called before changed events are raised.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax protected virtual void OnFieldValueChanged(
Object originalValue,
int fieldIndex
)
Protected Overridable Sub OnFieldValueChanged (
originalValue As Object,
fieldIndex As Integer
)
Parameters
- originalValue
- Type: SystemObject
The original value of the field, can be null if the field didn't have a value. - fieldIndex
- Type: SystemInt32
Index of the field.
Remarks
In an override, cast the field's fieldindex to the fieldindex of the entity to quickly determine which field you're dealing with
See Also