< Summary

Information
Class: FAU.Entidades.BitacoraAuditoria
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/BitacoraAuditoria.cs
Line coverage
100%
Covered lines: 12
Uncovered lines: 0
Coverable lines: 12
Total lines: 52
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_Id()100%11100%
get_UsuarioId()100%11100%
get_AccionId()100%11100%
get_ContextoId()100%11100%
get_Host()100%11100%
get_Fecha()100%11100%
get_Entidad()100%11100%
get_EntidadId()100%11100%
get_Detalle()100%11100%
get_Usuario()100%11100%
get_Accion()100%11100%
get_Contexto()100%11100%

File(s)

/home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/BitacoraAuditoria.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("bitacora_auditoria")]
 7public class BitacoraAuditoria
 8{
 9    [Key]
 10    [Column("id")]
 1011    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("usuario_id")]
 2315    public long UsuarioId { get; set; }
 16
 17    [Required]
 18    [Column("accion_id")]
 2319    public long AccionId { get; set; }
 20
 21    [Required]
 22    [Column("contexto_id")]
 2323    public long ContextoId { get; set; }
 24
 25    [MaxLength(100)]
 26    [Column("host")]
 2427    public string? Host { get; set; }
 28
 29    [Column("fecha")]
 5530    public DateTime Fecha { get; set; } = DateTime.Now;
 31
 32    [MaxLength(60)]
 33    [Column("entidad")]
 1334    public string? Entidad { get; set; }
 35
 36    [Column("entidad_id")]
 1337    public long? EntidadId { get; set; }
 38
 39    [Column("detalle", TypeName = "jsonb")]
 1540    public string? Detalle { get; set; }
 41
 42    // Navegación
 43    [ForeignKey("UsuarioId")]
 244    public virtual Usuario Usuario { get; set; } = null!;
 45
 46    [ForeignKey("AccionId")]
 247    public virtual Accion Accion { get; set; } = null!;
 48
 49    [ForeignKey("ContextoId")]
 350    public virtual Contexto Contexto { get; set; } = null!;
 51}
 52