< Summary

Information
Class: LGDXRobotCloud.Data.Entities.ActivityLog
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Entities/ActivityLog.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 28
Line coverage: 0%
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_Id()100%210%
get_EntityName()100%210%
get_EntityId()100%210%
get_Action()100%210%
get_UserId()100%210%
get_ApiKeyId()100%210%
get_Note()100%210%
get_CreatedAt()100%210%

File(s)

/builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Entities/ActivityLog.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3using Microsoft.EntityFrameworkCore;
 4
 5namespace LGDXRobotCloud.Data.Entities;
 6
 7[Index(nameof(EntityName))]
 8[Index(nameof(EntityName), nameof(EntityId))]
 9public class ActivityLog
 10{
 11  [Key]
 12  [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 013  public int Id { get; set; }
 14
 015  public required string EntityName { get; set; }
 16
 017  public required string EntityId { get; set; }
 18
 019  public required int Action { get; set; }
 20
 021  public Guid? UserId { get; set; }
 22
 023  public int? ApiKeyId { get; set; }
 24
 025  public string? Note { get; set; }
 26
 027  public DateTime CreatedAt { get; set; }
 28}