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

loresoft / EntityFrameworkCore.Generator / 27730465225

18 Jun 2026 01:21AM UTC coverage: 74.693% (+19.8%) from 54.885%
27730465225

push

github

pwelter34
update tests

922 of 1609 branches covered (57.3%)

Branch coverage included in aggregate %.

7 of 7 new or added lines in 2 files covered. (100.0%)

230 existing lines in 23 files now uncovered.

4007 of 4990 relevant lines covered (80.3%)

1258.69 hits per line

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

0.0
/src/EntityFrameworkCore.Generator.Core/Options/TemplateOptions.cs
1
namespace EntityFrameworkCore.Generator.Options;
2

3
/// <summary>
4
/// Script Template options
5
/// </summary>
6
public class TemplateOptions : OptionsBase
7
{
8
    /// <summary>
9
    /// Initializes a new instance of the <see cref="TemplateOptions"/> class.
10
    /// </summary>
11
    /// <param name="variables">The shared variable dictionary.</param>
12
    /// <param name="prefix">The variable key prefix.</param>
13
    public TemplateOptions(VariableDictionary variables, string? prefix)
UNCOV
14
        : base(variables, AppendPrefix(prefix, "Template"))
×
15
    {
16
        Parameters = [];
×
UNCOV
17
    }
×
18

19
    /// <summary>
20
    /// Gets or sets the template file path.
21
    /// </summary>
22
    /// <value>
23
    /// The template file path.
24
    /// </value>
25
    public string? TemplatePath
26
    {
UNCOV
27
        get => GetProperty();
×
UNCOV
28
        set => SetProperty(value);
×
29
    }
30

31
    /// <summary>
32
    /// Gets or sets the name of the class
33
    /// </summary>
34
    /// <value>
35
    /// The name of the class.
36
    /// </value>
37
    public string? FileName
38
    {
UNCOV
39
        get => GetProperty();
×
UNCOV
40
        set => SetProperty(value);
×
41
    }
42

43
    /// <summary>
44
    /// Gets or sets the class namespace.
45
    /// </summary>
46
    /// <value>
47
    /// The class namespace.
48
    /// </value>
49
    public string? Namespace
50
    {
UNCOV
51
        get => GetProperty();
×
UNCOV
52
        set => SetProperty(value);
×
53
    }
54

55
    /// <summary>
56
    /// Gets or sets the base class.
57
    /// </summary>
58
    /// <value>
59
    /// The base class.
60
    /// </value>
61
    public string? BaseClass
62
    {
UNCOV
63
        get => GetProperty();
×
UNCOV
64
        set => SetProperty(value);
×
65
    }
66

67

68
    /// <summary>
69
    /// Gets or sets the output directory.  Default is the current working directory.
70
    /// </summary>
71
    /// <value>
72
    /// The output directory.
73
    /// </value>
74
    public string? Directory
75
    {
UNCOV
76
        get => GetProperty();
×
UNCOV
77
        set => SetProperty(value);
×
78
    }
79

80
    /// <summary>
81
    /// Gets or sets a value indicating whether the generated file will be overwritten.
82
    /// </summary>
83
    /// <value>
84
    ///   <c>true</c> to overwrite generated file; otherwise, <c>false</c>.
85
    /// </value>
86
    public bool Overwrite { get; set; }
87

88
    /// <summary>
89
    /// Gets or sets a value indicating whether the generated file will be merged via region replacement.
90
    /// </summary>
91
    /// <value>
92
    ///   <c>true</c> to merged via region replacement; otherwise, <c>false</c>.
93
    /// </value>
94
    public bool Merge { get; set; }
95

96
    /// <summary>
97
    /// Gets or sets the template parameters.
98
    /// </summary>
99
    /// <value>
100
    /// The template parameters.
101
    /// </value>
102
    public Dictionary<string, string> Parameters { get; }
103
}
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

© 2026 Coveralls, Inc