< Summary

Information
Class: Elsa.Persistence.EFCore.Sqlite.SqliteDesignTimeDbContextFactory<T>
Assembly: Elsa.Persistence.EFCore.Sqlite
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Sqlite/DbContextFactories.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 40
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
ConfigureBuilder(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Sqlite/DbContextFactories.cs

#LineLine coverage
 1using Elsa.Persistence.EFCore.Abstractions;
 2using Elsa.Persistence.EFCore.Extensions;
 3using Elsa.Persistence.EFCore.Modules.Alterations;
 4using Elsa.Persistence.EFCore.Modules.Identity;
 5using Elsa.Persistence.EFCore.Modules.Labels;
 6using Elsa.Persistence.EFCore.Modules.Management;
 7using Elsa.Persistence.EFCore.Modules.Runtime;
 8using Elsa.Persistence.EFCore.Modules.Tenants;
 9using JetBrains.Annotations;
 10using Microsoft.EntityFrameworkCore;
 11
 12#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
 13
 14namespace Elsa.Persistence.EFCore.Sqlite;
 15
 16[UsedImplicitly]
 17public class IdentityDbContextFactory : SqliteDesignTimeDbContextFactory<IdentityElsaDbContext>;
 18
 19[UsedImplicitly]
 20public class ManagementDbContextFactory : SqliteDesignTimeDbContextFactory<ManagementElsaDbContext>;
 21
 22[UsedImplicitly]
 23public class RuntimeDbContextFactory : SqliteDesignTimeDbContextFactory<RuntimeElsaDbContext>;
 24
 25[UsedImplicitly]
 26public class LabelsDbContextFactory : SqliteDesignTimeDbContextFactory<LabelsElsaDbContext>;
 27
 28[UsedImplicitly]
 29public class AlterationsDbContextFactories : SqliteDesignTimeDbContextFactory<AlterationsElsaDbContext>;
 30
 31[UsedImplicitly]
 32public class TenantsDbContextFactories : SqliteDesignTimeDbContextFactory<TenantsElsaDbContext>;
 33
 34public class SqliteDesignTimeDbContextFactory<TDbContext> : DesignTimeDbContextFactoryBase<TDbContext> where TDbContext 
 35{
 36    protected override void ConfigureBuilder(DbContextOptionsBuilder<TDbContext> builder, string connectionString)
 37    {
 038        builder.UseElsaSqlite(GetType().Assembly, connectionString);
 039    }
 40}