< Summary

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

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