< Summary

Information
Class: LifeChart.Infrastructure.Persistence.LifeChartDbContextFactory
Assembly: LifeChart.Infrastructure
File(s): /home/runner/work/lifechart/lifechart/src/LifeChart.Infrastructure/Persistence/LifeChartDbContextFactory.cs
Tag: 113_29159449707
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 16
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
CreateDbContext(...)100%210%

File(s)

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

#LineLine coverage
 1using Microsoft.EntityFrameworkCore;
 2using Microsoft.EntityFrameworkCore.Design;
 3
 4namespace LifeChart.Infrastructure.Persistence;
 5
 6public class LifeChartDbContextFactory : IDesignTimeDbContextFactory<LifeChartDbContext>
 7{
 8    public LifeChartDbContext CreateDbContext(string[] args)
 9    {
 010        var options = new DbContextOptionsBuilder<LifeChartDbContext>()
 011            .UseSqlite("Data Source=lifechart_designtime.db")
 012            .Options;
 13
 014        return new LifeChartDbContext(options);
 15    }
 16}