< Summary

Information
Class: ProjectTemplate.Infrastructure.Data.Entities.AuditRecord
Assembly: ProjectTemplate.Infrastructure
File(s): /home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Infrastructure/Data/Entities/AuditRecord.cs
Line coverage
100%
Covered lines: 20
Uncovered lines: 0
Coverable lines: 20
Total lines: 104
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_SchemaVersion()100%11100%
get_ModifiedBy()100%11100%
get_ActorId()100%11100%
get_ActorType()100%11100%
get_ModifiedOnUtc()100%11100%
get_Application()100%11100%
get_Entity()100%11100%
get_State()100%11100%
get_MutationBatchId()100%11100%
get_OperationExecutionId()100%11100%
get_ExecutionAttemptId()100%11100%
get_CorrelationId()100%11100%
get_TraceId()100%11100%
get_SpanId()100%11100%
get_DecisionAuditRecordId()100%11100%
get_TenantHash()100%11100%
get_OrganizationHash()100%11100%
get_KeyValues()100%11100%
get_OriginalValues()100%11100%
get_CurrentValues()100%11100%

File(s)

/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Infrastructure/Data/Entities/AuditRecord.cs

#LineLine coverage
 1namespace ProjectTemplate.Infrastructure.Data.Entities;
 2
 3public class AuditRecord : DataEntity
 4{
 5    /// <summary>
 6    /// Gets or sets the schema version for this audit record.
 7    /// </summary>
 3028    public string SchemaVersion { get; set; } = "1.0";
 9
 10    /// <summary>
 11    /// The user, system or remote IP address that made the change. It can be a username, an email address, or a system 
 12    /// </summary>
 20813    public string ModifiedBy { get; set; } = string.Empty;
 14
 15    /// <summary>
 16    /// Gets or sets the stable machine-readable actor identifier.
 17    /// </summary>
 19218    public string ActorId { get; set; } = string.Empty;
 19
 20    /// <summary>
 21    /// Gets or sets the actor type, such as Human, Service, System, Network, or Unknown.
 22    /// </summary>
 19223    public string ActorType { get; set; } = string.Empty;
 24
 25    /// <summary>
 26    /// The date and time when the change was made, in Coordinated Universal Time (UTC). It should be stored in UTC to a
 27    /// </summary>
 20828    public DateTime ModifiedOnUtc { get; set; } = PersistenceTimestamp.UtcNow();
 29
 30    /// <summary>
 31    /// The name of the application or service that made the change. It can be used to group changes by application or s
 32    /// </summary>
 19233    public string Application { get; set; } = string.Empty;
 34
 35    /// <summary>
 36    /// The name of the entity that was changed. It can be used to group changes by entity type, and to identify which e
 37    /// </summary>
 31038    public string Entity { get; set; } = string.Empty;
 39
 40    /// <summary>
 41    /// The state of the entity after the change. It can be used to identify whether the entity was created, updated, or
 42    /// </summary>
 33243    public string State { get; set; } = string.Empty;
 44
 45    /// <summary>
 46    /// Gets or sets the identifier that groups all audit records created by one logical save operation.
 47    /// </summary>
 48248    public string MutationBatchId { get; set; } = string.Empty;
 49
 50    /// <summary>
 51    /// Gets or sets the host-owned identifier for the governed operation execution.
 52    /// </summary>
 20653    public string? OperationExecutionId { get; set; }
 54
 55    /// <summary>
 56    /// Gets or sets the host-owned identifier for a particular retry or execution attempt.
 57    /// </summary>
 20658    public string? ExecutionAttemptId { get; set; }
 59
 60    /// <summary>
 61    /// Gets or sets the request or workflow correlation identifier.
 62    /// </summary>
 20463    public string? CorrelationId { get; set; }
 64
 65    /// <summary>
 66    /// Gets or sets the distributed trace identifier.
 67    /// </summary>
 20468    public string? TraceId { get; set; }
 69
 70    /// <summary>
 71    /// Gets or sets the distributed span identifier.
 72    /// </summary>
 17273    public string? SpanId { get; set; }
 74
 75    /// <summary>
 76    /// Gets or sets the identifier of the related policy decision audit record, when supplied by the host.
 77    /// </summary>
 20478    public string? DecisionAuditRecordId { get; set; }
 79
 80    /// <summary>
 81    /// Gets or sets an optional privacy-preserving tenant hash.
 82    /// </summary>
 6083    public string? TenantHash { get; set; }
 84
 85    /// <summary>
 86    /// Gets or sets an optional privacy-preserving organization hash.
 87    /// </summary>
 6088    public string? OrganizationHash { get; set; }
 89
 90    /// <summary>
 91    /// The key values of the entity that was changed. It can be used to identify which specific entity was changed, and
 92    /// </summary>
 30893    public string KeyValues { get; set; } = string.Empty;
 94
 95    /// <summary>
 96    /// The original values of the entity before the change. It can be used to identify what the values were before the 
 97    /// </summary>
 31098    public string OriginalValues { get; set; } = string.Empty;
 99
 100    /// <summary>
 101    /// The current values of the entity after the change. It can be used to identify what the values are after the chan
 102    /// </summary>
 330103    public string CurrentValues { get; set; } = string.Empty;
 104}