< Summary

Information
Class: Elsa.Persistence.EFCore.Sqlite.ShellFeatures.Labels.SqliteLabelPersistenceShellFeature
Assembly: Elsa.Persistence.EFCore.Sqlite
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Sqlite/ShellFeatures/Labels/SqliteLabelPersistenceShellFeature.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 39
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
ConfigureProvider(...)100%210%
OnConfiguring(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Sqlite/ShellFeatures/Labels/SqliteLabelPersistenceShellFeature.cs

#LineLine coverage
 1using System.Reflection;
 2using CShells.Features;
 3using Elsa.Labels.ShellFeatures;
 4using Elsa.Persistence.EFCore.Extensions;
 5using Elsa.Persistence.EFCore.Modules.Labels;
 6using Elsa.Platform.PackageManifest.Generator.Hints;
 7using JetBrains.Annotations;
 8using Microsoft.EntityFrameworkCore;
 9using Microsoft.Extensions.DependencyInjection;
 10
 11namespace Elsa.Persistence.EFCore.Sqlite.ShellFeatures.Labels;
 12
 13/// <summary>
 14/// Configures the labels feature to use Sqlite persistence.
 15/// </summary>
 16[ManifestFeatureCategory("Persistence")]
 17[ManifestFeatureCategory("Labels")]
 18[ShellFeature(
 19    DisplayName = "Sqlite Label Persistence",
 20    Description = "Provides Sqlite persistence for label management",
 21    DependsOn = [typeof(LabelsFeature)])]
 22[UsedImplicitly]
 23[ManifestInfrastructure("sqlite-database", "database", Reason = "Stores workflow label data in SQLite.", Providers = new
 24public class SqliteLabelPersistenceShellFeature
 25    : EFCoreLabelPersistenceShellFeatureBase
 26{
 27    /// <inheritdoc />
 28    protected override void ConfigureProvider(DbContextOptionsBuilder builder, Assembly migrationsAssembly, string conne
 29    {
 030        builder.UseElsaSqlite(migrationsAssembly, connectionString, options);
 031    }
 32
 33    /// <inheritdoc />
 34    protected override void OnConfiguring(IServiceCollection services)
 35    {
 036        services.AddSqliteEntityModelCreatingHandlers();
 037        base.OnConfiguring(services);
 038    }
 39}