EntityCoreTFieldsOnAuditEntityFieldGet Method |
Audits when an entity field's value is succesfully obtained from the passed in entity
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 protected virtual void OnAuditEntityFieldGet(
int fieldIndex
)
Protected Overridable Sub OnAuditEntityFieldGet (
fieldIndex As Integer
)
Parameters
- fieldIndex
- Type: SystemInt32
Index of the field which value was obtained.
Remarks Be careful when using this auditing method, because a lot of calls will be made to this method when data is for example shown in
a grid. Another thing to realize is that the audit information is stored inside the auditor which is inside an entity which might not be
persisted/deleted later on. This means that if you use the audit data to produce entities which are then returned by GetAuditEntitiesToSave
are never persisted if the entity this auditor is the auditor of is never persisted/deleted. In that situation, to get reliable journalling,
use an external service to log the audit data.
See Also