< Summary

Information
Class: LifeChart.Infrastructure.Persistence.LifeChartDbContext
Assembly: LifeChart.Infrastructure
File(s): /home/runner/work/lifechart/lifechart/src/LifeChart.Infrastructure/Persistence/LifeChartDbContext.cs
Tag: 113_29159449707
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 20
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_DailyEntries()100%210%
get_Medications()100%210%
.ctor(...)100%210%
OnModelCreating(...)100%210%

File(s)

/home/runner/work/lifechart/lifechart/src/LifeChart.Infrastructure/Persistence/LifeChartDbContext.cs

#LineLine coverage
 1using LifeChart.Domain.Entries;
 2using LifeChart.Domain.Medications;
 3using Microsoft.EntityFrameworkCore;
 4
 5namespace LifeChart.Infrastructure.Persistence;
 6
 7public class LifeChartDbContext : DbContext
 8{
 09    public DbSet<DailyEntry> DailyEntries => Set<DailyEntry>();
 010    public DbSet<Medication> Medications => Set<Medication>();
 11
 12    public LifeChartDbContext(DbContextOptions<LifeChartDbContext> options)
 013        : base(options) { }
 14
 15    protected override void OnModelCreating(ModelBuilder modelBuilder)
 16    {
 017        modelBuilder.ApplyConfigurationsFromAssembly(
 018            typeof(LifeChartDbContext).Assembly);
 019    }
 20}