< Summary - Syki

Information
Class: Syki.Back.Database.Commands.CommandDbConfig
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Database/Commands/CommandDbConfig.cs
Tag: 56_26538939494
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 18
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
Configure(...)100%11100%

File(s)

/home/runner/work/syki/syki/Back/Database/Commands/CommandDbConfig.cs

#LineLine coverage
 1using Syki.Back.Commands.Domain.Commands;
 2
 3namespace Syki.Back.Database.Commands;
 4
 5public class CommandDbConfig : IEntityTypeConfiguration<Command>
 6{
 7    public void Configure(EntityTypeBuilder<Command> entity)
 8    {
 49        entity.ToTable("commands", DbSchemas.Syki);
 10
 411        entity.HasKey(e => e.Id);
 12
 413        entity.HasOne(e => e.Institution)
 414            .WithMany()
 415            .HasPrincipalKey(i => i.Id)
 416            .HasForeignKey(e => e.InstitutionId);
 417    }
 18}