• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

loresoft / EntityFrameworkCore.Generator / 15303740763

28 May 2025 03:07PM UTC coverage: 54.841% (-0.2%) from 55.036%
15303740763

push

github

pwelter34
add file header support

642 of 1331 branches covered (48.23%)

Branch coverage included in aggregate %.

14 of 33 new or added lines in 14 files covered. (42.42%)

3 existing lines in 3 files now uncovered.

1873 of 3255 relevant lines covered (57.54%)

61.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
/src/EntityFrameworkCore.Generator.Core/Options/SharedModelOptions.cs
1
namespace EntityFrameworkCore.Generator.Options;
2

3
/// <summary>
4
/// Shared model options
5
/// </summary>
6
/// <seealso cref="OptionsBase" />
7
public class SharedModelOptions : OptionsBase
8
{
9
    /// <summary>
10
    /// Initializes a new instance of the <see cref="SharedModelOptions"/> class.
11
    /// </summary>
12
    /// <param name="variables">The shared variables dictionary.</param>
13
    /// <param name="prefix">The variable key prefix.</param>
14
    public SharedModelOptions(VariableDictionary variables, string? prefix)
15
        : base(variables, prefix)
10✔
16
    {
17
        Namespace = "{Project.Namespace}.Domain.Models";
10✔
18
        Directory = @"{Project.Directory}\Domain\Models";
10✔
19

20
        Include = new SelectionOptions(variables, AppendPrefix(prefix, "Include"));
10✔
21
        Exclude = new SelectionOptions(variables, AppendPrefix(prefix, "Exclude"));
10✔
22
    }
10✔
23

24
    /// <summary>
25
    /// Gets or sets the class namespace.
26
    /// </summary>
27
    /// <value>
28
    /// The class namespace.
29
    /// </value>
30
    public string? Namespace
31
    {
32
        get => GetProperty();
6✔
33
        set => SetProperty(value);
10✔
34
    }
35

36
    /// <summary>
37
    /// Gets or sets the output directory.
38
    /// </summary>
39
    /// <value>
40
    /// The output directory.
41
    /// </value>
42
    public string? Directory
43
    {
44
        get => GetProperty();
×
45
        set => SetProperty(value);
10✔
46
    }
47

48
    /// <summary>
49
    /// Gets or sets the file header
50
    /// </summary>
51
    public string? Header
52
    {
53
        get => GetProperty();
6✔
NEW
54
        set => SetProperty(value);
×
55
    }
56

57
    /// <summary>
58
    /// Gets or sets the include selection options.
59
    /// </summary>
60
    /// <value>
61
    /// The include selection options.
62
    /// </value>
63
    public SelectionOptions Include { get; }
18✔
64

65
    /// <summary>
66
    /// Gets or sets the exclude selection options.
67
    /// </summary>
68
    /// <value>
69
    /// The exclude selection options.
70
    /// </value>
71
    public SelectionOptions Exclude { get; }
18✔
72
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc