< Summary

Information
Class: Elsa.Persistence.EFCore.SqlServer.ShellFeatures.Alterations.SqlServerAlterationsPersistenceShellFeature
Assembly: Elsa.Persistence.EFCore.SqlServer
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.SqlServer/ShellFeatures/Alterations/SqlServerAlterationsPersistenceShellFeature.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 31
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%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.SqlServer/ShellFeatures/Alterations/SqlServerAlterationsPersistenceShellFeature.cs

#LineLine coverage
 1using System.Reflection;
 2using CShells.Features;
 3using Elsa.Alterations.ShellFeatures;
 4using Elsa.Persistence.EFCore.Extensions;
 5using Elsa.Persistence.EFCore.Modules.Alterations;
 6using Elsa.Platform.PackageManifest.Generator.Hints;
 7using JetBrains.Annotations;
 8using Microsoft.EntityFrameworkCore;
 9
 10namespace Elsa.Persistence.EFCore.SqlServer.ShellFeatures.Alterations;
 11
 12/// <summary>
 13/// Configures the alterations feature to use SqlServer persistence.
 14/// </summary>
 15[ManifestFeatureCategory("Persistence")]
 16[ManifestFeatureCategory("Alterations")]
 17[ShellFeature(
 18    DisplayName = "SqlServer Alterations Persistence",
 19    Description = "Provides SqlServer persistence for workflow alterations",
 20    DependsOn = [typeof(AlterationsFeature)])]
 21[UsedImplicitly]
 22[ManifestInfrastructure("sqlserver-database", "database", Reason = "Stores workflow alteration records in SQL Server.", 
 23public class SqlServerAlterationsPersistenceShellFeature
 24    : EFCoreAlterationsPersistenceShellFeatureBase
 25{
 26    /// <inheritdoc />
 27    protected override void ConfigureProvider(DbContextOptionsBuilder builder, Assembly migrationsAssembly, string conne
 28    {
 029        builder.UseElsaSqlServer(migrationsAssembly, connectionString, options);
 030    }
 31}