• 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

88.89
/src/EntityFrameworkCore.Generator.Core/Options/ClassOptionsBase.cs
1
using System;
2
using System.ComponentModel;
3

4
namespace EntityFrameworkCore.Generator.Options;
5

6
/// <summary>
7
/// Base class for Class generation
8
/// </summary>
9
public abstract class ClassOptionsBase : OptionsBase
10
{
11
    /// <summary>
12
    /// Initializes a new instance of the <see cref="ClassOptionsBase"/> class.
13
    /// </summary>
14
    protected ClassOptionsBase(VariableDictionary variables, string? prefix)
15
        : base(variables, prefix)
90✔
16
    {
17
        Namespace = "{Project.Namespace}";
90✔
18
        Directory = @"{Project.Directory}\";
90✔
19
        Document = false;
90✔
20
    }
90✔
21

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

34
    /// <summary>
35
    /// Gets or sets the output directory.  Default is the current working directory.
36
    /// </summary>
37
    /// <value>
38
    /// The output directory.
39
    /// </value>
40
    public string? Directory
41
    {
42
        get => GetProperty();
52✔
43
        set => SetProperty(value);
180✔
44
    }
45

46
    /// <summary>
47
    /// Gets or sets a value indicating whether to create xml documentation.
48
    /// </summary>
49
    /// <value>
50
    ///   <c>true</c> to create xml documentation; otherwise, <c>false</c>.
51
    /// </value>
52
    [DefaultValue(false)]
53
    public bool Document { get; set; }
698✔
54

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

67
    /// <summary>
68
    /// Gets or sets the base class to inherit from.
69
    /// </summary>
70
    /// <value>
71
    /// The base class.
72
    /// </value>
73
    public string? BaseClass
74
    {
75
        get => GetProperty();
55✔
76
        set => SetProperty(value);
30✔
77
    }
78

79
    /// <summary>
80
    /// Gets or sets the attributes to add to the class
81
    /// </summary>
82
    /// <value>
83
    /// The attributes to add to the class
84
    /// </value>
85
    public string? Attributes
86
    {
87
        get => GetProperty();
6✔
88
        set => SetProperty(value);
×
89
    }
90

91
    /// <summary>
92
    /// Gets or sets the file header.
93
    /// </summary>
94
    public string? Header
95
    {
96
        get => GetProperty();
52✔
NEW
97
        set => SetProperty(value);
×
98
    }
99
}
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