• 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

82.35
/src/EntityFrameworkCore.Generator.Core/Options/DatabaseOptions.cs
1
using System.Collections.Generic;
2
using System.ComponentModel;
3

4
namespace EntityFrameworkCore.Generator.Options;
5

6
/// <summary>
7
/// Database options for reverse engineering the database
8
/// </summary>
9
public class DatabaseOptions : OptionsBase
10
{
11
    /// <summary>
12
    /// Initializes a new instance of the <see cref="DatabaseOptions"/> class.
13
    /// </summary>
14
    /// <param name="variables">The shared variables dictionary.</param>
15
    /// <param name="prefix">The variable key prefix.</param>
16
    public DatabaseOptions(VariableDictionary variables, string? prefix)
17
        : base(variables, AppendPrefix(prefix, "Database"))
11✔
18
    {
19
        Provider = DatabaseProviders.SqlServer;
11✔
20
        TableNaming = TableNaming.Singular;
11✔
21
        Tables = [];
11✔
22
        Schemas = [];
11✔
23
        Exclude = [];
11✔
24
    }
11✔
25

26
    /// <summary>
27
    /// Gets or sets the name of the database.
28
    /// </summary>
29
    /// <value>
30
    /// The name of the database.
31
    /// </value>
32
    public string? Name
33
    {
34
        get => GetProperty();
×
35
        set => SetProperty(value);
11✔
36
    }
37

38

39
    /// <summary>
40
    /// Gets or sets the database to generate code for.
41
    /// </summary>
42
    /// <value>
43
    /// The database to generate code for.
44
    /// </value>
45
    [DefaultValue(DatabaseProviders.SqlServer)]
46
    public DatabaseProviders Provider { get; set; }
14✔
47

48

49
    /// <summary>
50
    /// Gets or sets the connection string for reverse engineering the database
51
    /// </summary>
52
    /// <value>
53
    /// The connection string for reverse engineering the database
54
    /// </value>
55
    public string? ConnectionString { get; set; }
9✔
56

57
    /// <summary>
58
    /// Gets or sets the name of the connection in the user secret file.
59
    /// </summary>
60
    /// <value>
61
    /// The name of the connection.
62
    /// </value>
NEW
63
    public string? ConnectionName { get; set; }
×
64

65
    /// <summary>
66
    /// Gets or sets the user secrets identifier. A user secrets ID is unique value used to store and identify a collection of secret configuration values.
67
    /// </summary>
68
    /// <value>
69
    /// The user secrets identifier.
70
    /// </value>
NEW
71
    public string? UserSecretsId { get; set; }
×
72

73

74
    /// <summary>
75
    /// Gets or sets the table naming hint for how existing tables are named. This is used to determine if the name should be converted.
76
    /// </summary>
77
    /// <value>
78
    /// The table naming hint for how tables are named.
79
    /// </value>
80
    [DefaultValue(TableNaming.Singular)]
81
    public TableNaming TableNaming { get; set; }
53✔
82

83

84

85
    /// <summary>
86
    /// Gets or sets the tables to include in the model, or an empty enumerable to include all
87
    /// </summary>
88
    /// <value>
89
    /// The tables to include in the model, or an empty enumerable to include all
90
    /// </value>
91
    public List<string> Tables { get; }
3✔
92

93
    /// <summary>
94
    /// Gets or sets the schema to include in the model, or an empty enumerable to include all.
95
    /// </summary>
96
    /// <value>
97
    /// The schema to include in the model, or an empty enumerable to include all.
98
    /// </value>
99
    public List<string> Schemas { get; }
3✔
100

101
    /// <summary>
102
    /// Gets or sets the exclude table options.
103
    /// </summary>
104
    /// <value>
105
    /// The exclude table options.
106
    /// </value>
107
    public List<MatchOptions> Exclude { get; }
67✔
108

109
}
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