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

loresoft / EntityFrameworkCore.Generator / 15072048022

16 May 2025 03:31PM UTC coverage: 55.392% (-1.4%) from 56.772%
15072048022

push

github

pwelter34
enable nullable support

616 of 1271 branches covered (48.47%)

Branch coverage included in aggregate %.

233 of 397 new or added lines in 61 files covered. (58.69%)

17 existing lines in 11 files now uncovered.

1824 of 3134 relevant lines covered (58.2%)

88.56 hits per line

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

81.82
/src/EntityFrameworkCore.Generator.Core/Options/ProjectOptions.cs
1
using System.ComponentModel;
2

3
namespace EntityFrameworkCore.Generator.Options;
4

5
/// <summary>
6
/// Project options
7
/// </summary>
8
public class ProjectOptions : OptionsBase
9
{
10

11
    /// <summary>
12
    /// Initializes a new instance of the <see cref="ProjectOptions"/> class.
13
    /// </summary>
14
    public ProjectOptions(VariableDictionary variables, string? prefix)
15
        : base(variables, AppendPrefix(prefix, "Project"))
11✔
16
    {
17
        Namespace = "{Database.Name}";
11✔
18
        Directory = @".\";
11✔
19
        Nullable = false;
11✔
20
    }
11✔
21

22
    /// <summary>
23
    /// Gets or sets the project root namespace.
24
    /// </summary>
25
    /// <value>
26
    /// The project root namespace.
27
    /// </value>
28
    public string? Namespace
29
    {
UNCOV
30
        get => GetProperty();
×
31
        set => SetProperty(value);
11✔
32
    }
33

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

46

47
    /// <summary>
48
    /// Gets or sets if the output should support nullable reference types.
49
    /// </summary>
50
    /// <value>
51
    /// If the output should support nullable reference types.
52
    /// </value>
53
    [DefaultValue(false)]
54
    public bool Nullable { get; set; }
458✔
55

56
    /// <summary>
57
    /// Gets or sets a value indicating whether to use file-scoped namespace.
58
    /// </summary>
59
    /// <value>
60
    ///   <c>true</c> to use file-coped namespace; otherwise, <c>false</c>.
61
    /// </value>
62
    [DefaultValue(false)]
63
    public bool FileScopedNamespace { get; set; }
69✔
64
}
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