< Summary

Information
Class: Elsa.Persistence.EFCore.SqlServer.ShellFeatures.Identity.SqlServerIdentityPersistenceShellFeature
Assembly: Elsa.Persistence.EFCore.SqlServer
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.SqlServer/ShellFeatures/Identity/SqlServerIdentityPersistenceShellFeature.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/Identity/SqlServerIdentityPersistenceShellFeature.cs

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