IDataModelAuditor

Allows implementing classes to log data modifications.

Namespace:
KpokPatagon.Data
Type:
Interface
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
Yes

Properties

RequiresTransaction

Indicates whether the auditor requires an active transaction.

Signature:
public Boolean RequiresTransaction { get; }

Methods

AfterDataAction

Performs an auditing process after the data action was taken.

Signature:
public Void AfterDataAction(action, model)
Parameters
Name Type Summary
action DataAction
model IDataModel

BeforeDataAction

Performs an auditing process before the data action takes place.

Signature:
public Void BeforeDataAction(action, model)
Parameters
Name Type Summary
action DataAction
model IDataModel

VerifyIntegrity

Verify if the secured model is consistent with the audit information of it and optionally generates an audit incident.

Signature:
public SecuredDataModelVerificationResult VerifyIntegrity(model, generateAuditIncident)
Returns

A SecuredDataModelVerificationResult.

Parameters
Name Type Summary
model IDataModel The data model to verify.
generateAuditIncident Boolean Whether an audit incident must be generated. Defaults to true.