< Summary

Information
Class: Elsa.Persistence.EFCore.ElsaDbContextOptionsExtension
Assembly: Elsa.Persistence.EFCore.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Common/ElsaDbContextOptionsExtension.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 37
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
.ctor(...)100%11100%
get_Options()100%11100%
get_Info()100%11100%
ApplyServices(...)100%11100%
Validate(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Common/ElsaDbContextOptionsExtension.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Infrastructure;
 2using Microsoft.Extensions.DependencyInjection;
 3
 4namespace Elsa.Persistence.EFCore;
 5
 6/// <summary>
 7/// Provides options for configuring Elsa's Entity Framework Core integration.
 8/// </summary>
 9public class ElsaDbContextOptionsExtension : IDbContextOptionsExtension
 10{
 11    /// <summary>
 12    /// Initializes a new instance of the <see cref="ElsaDbContextOptionsExtension"/> class.
 13    /// </summary>
 14    /// <param name="options">The options.</param>
 165315    public ElsaDbContextOptionsExtension(ElsaDbContextOptions? options)
 16    {
 165317        Options = options;
 165318    }
 19
 20    /// <summary>
 21    /// Gets the options.
 22    /// </summary>
 599923    public ElsaDbContextOptions? Options { get; }
 24
 25    /// <inheritdoc />
 3599426    public DbContextOptionsExtensionInfo Info => new CustomDbContextOptionsExtensionInfo(this);
 27
 28    /// <inheritdoc />
 29    public void ApplyServices(IServiceCollection services)
 30    {
 131    }
 32
 33    /// <inheritdoc />
 34    public void Validate(IDbContextOptions options)
 35    {
 136    }
 37}