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

loresoft / FluentCommand / 8850661434

26 Apr 2024 03:30PM UTC coverage: 54.48% (+2.6%) from 51.881%
8850661434

push

github

pwelter34
update debug settings

1152 of 2717 branches covered (42.4%)

Branch coverage included in aggregate %.

3682 of 6156 relevant lines covered (59.81%)

701.76 hits per line

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

80.95
/src/FluentCommand.SqlServer/Import/FieldDefinition.cs
1
namespace FluentCommand.Import;
2

3
/// <summary>
4
/// Field definition
5
/// </summary>
6
public class FieldDefinition
7
{
8
    /// <summary>
9
    /// Initializes a new instance of the <see cref="FieldDefinition"/> class.
10
    /// </summary>
11
    public FieldDefinition()
54✔
12
    {
13
        CanInsert = true;
54✔
14
        CanUpdate = true;
54✔
15
        CanMap = true;
54✔
16
        Expressions = new List<string>();
54✔
17
    }
54✔
18

19
    /// <summary>
20
    /// Gets or sets the display name.
21
    /// </summary>
22
    /// <value>
23
    /// The display name.
24
    /// </value>
25
    public string DisplayName { get; set; }
30✔
26

27
    /// <summary>
28
    /// Gets or sets the name of the field.
29
    /// </summary>
30
    /// <value>
31
    /// The name of the field.
32
    /// </value>
33
    public string Name { get; set; }
249✔
34

35
    /// <summary>
36
    /// Gets or sets the type of the field.
37
    /// </summary>
38
    /// <value>
39
    /// The type of the field.
40
    /// </value>
41
    public Type DataType { get; set; }
189✔
42

43
    /// <summary>
44
    /// Gets or sets a value indicating whether this field is a key.
45
    /// </summary>
46
    /// <value>
47
    ///   <c>true</c> if this field is a key; otherwise, <c>false</c>.
48
    /// </value>
49
    public bool IsKey { get; set; }
×
50

51
    /// <summary>
52
    /// Gets or sets a value indicating whether this field can insert.
53
    /// </summary>
54
    /// <value>
55
    /// <c>true</c> if this field can insert; otherwise, <c>false</c>.
56
    /// </value>
57
    public bool CanInsert { get; set; }
54✔
58

59
    /// <summary>
60
    /// Gets or sets a value indicating whether this field can update.
61
    /// </summary>
62
    /// <value>
63
    /// <c>true</c> if this field can update; otherwise, <c>false</c>.
64
    /// </value>
65
    public bool CanUpdate { get; set; }
54✔
66

67
    /// <summary>
68
    /// Gets or sets a value indicating whether this field can be mapped by the users.
69
    /// </summary>
70
    /// <value>
71
    ///   <c>true</c> if this field can be mapped; otherwise, <c>false</c>.
72
    /// </value>
73
    public bool CanMap { get; set; }
54✔
74

75
    /// <summary>
76
    /// Gets or sets a value indicating whether this <see cref="FieldDefinition"/> is required.
77
    /// </summary>
78
    /// <value>
79
    ///   <c>true</c> if required; otherwise, <c>false</c>.
80
    /// </value>
81
    public bool IsRequired { get; set; }
6✔
82

83

84
    /// <summary>
85
    /// Gets or sets the default value generation.
86
    /// </summary>
87
    /// <value>
88
    /// The default value generation.
89
    /// </value>
90
    public FieldDefault? Default { get; set; }
93✔
91

92
    /// <summary>
93
    /// Gets or sets the default value.
94
    /// </summary>
95
    /// <value>
96
    /// The default value.
97
    /// </value>
98
    public object DefaultValue { get; set; }
15✔
99

100
    /// <summary>
101
    /// Gets or sets the field translator <see cref="Type"/>.
102
    /// </summary>
103
    /// <value>
104
    /// The field translator <see cref="Type"/>.
105
    /// </value>
106
    public Type Translator { get; set; }
60✔
107

108
    /// <summary>
109
    /// Gets or sets the list match expressions.
110
    /// </summary>
111
    /// <value>
112
    /// The list match expressions.
113
    /// </value>
114
    public List<string> Expressions { get; set; }
54✔
115

116
    /// <summary>
117
    /// Converts to string.
118
    /// </summary>
119
    /// <returns>
120
    /// A <see cref="string" /> that represents this instance.
121
    /// </returns>
122
    public override string ToString()
123
    {
124
        return $"Display: {DisplayName}, Name: {Name}, DataType: {DataType?.Name}";
×
125
    }
126

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