< Summary - ZhEaIsNsAaBn.Libraries coverage (affected: 23 packages)

Information
Class: ZhEaIsNsAaBn.APPSettings.EFConfigurationProviderSettings<T1, T2>
Assembly: ZhEaIsNsAaBn.APPSettings
File(s): /home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.APPSettings/EFConfigurationProviderSettings.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 32
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%11100%
GetRequiredDbContextFactory()100%22100%

File(s)

/home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.APPSettings/EFConfigurationProviderSettings.cs

#LineLine coverage
 1namespace ZhEaIsNsAaBn.APPSettings;
 2
 3/// <summary>
 4/// Settings shared by the configuration source, the provider and the writer. Filled by the
 5/// <see cref="IEFConfigurationBuilder{TSettingsTable, TDbContext}"/>.
 6/// </summary>
 7/// <typeparam name="TSettingsTable">The settings entity.</typeparam>
 8/// <typeparam name="TDbContext">The context that holds the settings table.</typeparam>
 9public sealed class EFConfigurationProviderSettings< TSettingsTable, TDbContext >
 10    where TSettingsTable : class, IEFConfigurationValue, new()
 11    where TDbContext : DbContext
 12{
 13    /// <summary>Creates the contexts used to read and write the settings table. Required before the first load.</summar
 14    public IDbContextFactory<TDbContext>? DbContextFactory { get; set; }
 15
 16    /// <summary>
 17    /// Automatic reload after the settings table is saved. Not implemented yet (only turns on the reloader). Default: <
 18    /// </summary>
 19    public bool ReloadOnChange { get; set; }
 20
 21    /// <summary>
 22    /// Milliseconds an automatic reload waits before reading, so a save can finish first. Reserved; not used yet. Defau
 23    /// </summary>
 5624    public int ReloadDelay { get; set; } = 500;
 25
 26    /// <summary>Filter applied when reading and updating rows, e.g. one environment. Default: all rows.</summary>
 5627    public Expression<Func<TSettingsTable, bool>> Query { get; set; } = _ => true;
 28
 29
 30    internal IDbContextFactory<TDbContext> GetRequiredDbContextFactory()
 12831        => DbContextFactory ?? throw new InvalidOperationException( $"No IDbContextFactory<{typeof( TDbContext ).Name}> 
 32}