AuditDataService

Data service for audit records

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

Remarks

This service does not have any configuration for the required services for it to work.

All required services the CommandBuilder and the DataModelCommandBuilder must be configured by a DataServiceOptions<AuditDataService> configuration within the dependency injection service collection.

Constructors

AuditDataService

Default constructor

Signature:
public Void AuditDataService()

Properties

Alias

Gets an alias for the underlaying table.

Signature:
public String Alias { get; set; }

Fields

A collection of table field definition.

Signature:
public IDictionary<String, Field> Fields { get; set; }

Table

Gets the table name.

Signature:
public String Table { get; set; }

Methods

FindById

Finds an Audit with the specified id.

Signature:
public Audit FindById(id)
Returns

An Audit or null if not found.

Parameters
Name Type Summary
id Int32 Audit Id.

FindByIdAsync

Finds an Audit with the specified id.

Signature:
public Task FindByIdAsync(id)
Returns

An Audit or null if not found.

Parameters
Name Type Summary
id Int32 Audit Id.

GetSourceTypesAsync

Gets a collection of ListItems by grouping all available source types.

Signature:
public Task GetSourceTypesAsync()
Returns

A collection of ListItems.

GetUsersAsync

Gets a collection of ListItems by grouping the available users.

Signature:
public Task GetUsersAsync()
Returns

A collection of ListItems.