Audit

Information of a data modification audit.

Namespace:
KpokPatagon.Multitenancy.Auditing.Store
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No

Constructors

Audit

Default constructor

Signature:
public Void Audit()

Audit

Initializes a new instance of Audit.

Signature:
public Void Audit(id)
Parameters
Name Type Summary
id Int32 Audit record Id

Properties

CreationTime

Creation date and time.

Signature:
public DateTime CreationTime { get; set; }

Data

Audit record data

Signature:
public Byte[] Data { get; set; }

EnforceModelValidation

Whether model validation must be enforced.

Signature:
public Boolean EnforceModelValidation { get; }

Id

Audit record Id

Signature:
public Int32 Id { get; set; }

IncidentId

Audit incident Id

Signature:
public Nullable<Int32> IncidentId { get; set; }

Kind

Audit record kind

Signature:
public AuditKind Kind { get; set; }

NextId

Id of the next audit record

Signature:
public Nullable<Int32> NextId { get; set; }

PrevId

Id of the previous audit record

Signature:
public Nullable<Int32> PrevId { get; set; }

SourceCaption

Caption of the object that sources the audit record.

Signature:
public String SourceCaption { get; set; }

SourceDisplay

A human readable text for the object that sources the audit record.

Signature:
public String SourceDisplay { get; set; }

SourceId

Id of the object that sources the audit record.

Signature:
public String SourceId { get; set; }

SourceTypeName

The type name of the object that sources the audit record.

Signature:
public String SourceTypeName { get; set; }

TenantId

Multi-tenant partition key.

Signature:
public Int32 TenantId { get; set; }

UserAuthority

User authority.

Signature:
public String UserAuthority { get; set; }

UserDisplayName

User display name

Signature:
public String UserDisplayName { get; set; }

UserId

User Id

Signature:
public String UserId { get; set; }

UserName

User name

Signature:
public String UserName { get; set; }

Methods

Equals

Checks if other is equals to this object.

Signature:
public Boolean Equals(other)
Parameters
Name Type Summary
other Audit

Equals

Checks if obj is equals to this object.

Signature:
public Boolean Equals(obj)
Parameters
Name Type Summary
obj Object An object to compare with this object.

GetAuditData

Gets audit internal data.

Signature:
public AuditData GetAuditData()
Returns

An AuditData or null if there is no data.

GetHashCode

Not required, implemented to avoid warnings, returns base.GetHasCode().

Signature:
public Int32 GetHashCode()

ToString

Returns a textual represetation.

Signature:
public String ToString()