< Summary

Information
Class: Elsa.Persistence.EFCore.MigrationOptions
Assembly: Elsa.Persistence.EFCore.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Common/MigrationOptions.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 15
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
get_RunMigrations()100%11100%

File(s)

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

#LineLine coverage
 1// ReSharper disable once CheckNamespace
 2namespace Elsa.Persistence.EFCore;
 3
 4public class MigrationOptions
 5{
 6    /// <summary>
 7    /// Gets or sets a collection that determines whether Entity Framework Core migrations
 8    /// should be executed for specific DbContext types.
 9    /// </summary>
 10    /// <remarks>
 11    /// The key is the DbContext type, and the value is a boolean indicating whether migrations
 12    /// should be applied for that specific context (true to apply, false to skip).
 13    /// </remarks>
 1314    public IDictionary<Type, bool> RunMigrations { get; set; } = new Dictionary<Type, bool>();
 15}

Methods/Properties

get_RunMigrations()