< Summary

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

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore/Modules/Alterations/Extensions.cs

#LineLine coverage
 1using Elsa.Alterations.Features;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Persistence.EFCore.Modules.Alterations;
 5
 6/// <summary>
 7/// Provides extensions to the <see cref="AlterationsFeature"/> feature.
 8/// </summary>
 9[PublicAPI]
 10public static class Extensions
 11{
 12    /// <summary>
 13    /// Configures the <see cref="AlterationsFeature"/> to use EF Core persistence providers.
 14    /// </summary>
 15    public static AlterationsFeature UseEntityFrameworkCore(this AlterationsFeature feature, Action<EFCoreAlterationsPer
 16    {
 117        feature.Module.Configure(configure);
 118        return feature;
 19    }
 20}