Skip to content

Commit 844f6de

Browse files
committed
add nullable reference type support
1 parent 712f0fc commit 844f6de

File tree

66 files changed

+383
-230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+383
-230
lines changed

sample/Tracker/Tracker.Core/Data/Entities/Audit.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ public Audit()
5757
/// <value>
5858
/// The property value representing column 'Content'.
5959
/// </value>
60-
public string Content { get; set; }
60+
public string Content { get; set; } = null!;
6161

6262
/// <summary>
6363
/// Gets or sets the property value representing column 'Username'.
6464
/// </summary>
6565
/// <value>
6666
/// The property value representing column 'Username'.
6767
/// </value>
68-
public string Username { get; set; }
68+
public string Username { get; set; } = null!;
6969

7070
/// <summary>
7171
/// Gets or sets the property value representing column 'Created'.
@@ -81,7 +81,7 @@ public Audit()
8181
/// <value>
8282
/// The property value representing column 'CreatedBy'.
8383
/// </value>
84-
public string CreatedBy { get; set; }
84+
public string? CreatedBy { get; set; }
8585

8686
/// <summary>
8787
/// Gets or sets the property value representing column 'Updated'.
@@ -97,15 +97,15 @@ public Audit()
9797
/// <value>
9898
/// The property value representing column 'UpdatedBy'.
9999
/// </value>
100-
public string UpdatedBy { get; set; }
100+
public string? UpdatedBy { get; set; }
101101

102102
/// <summary>
103103
/// Gets or sets the property value representing column 'RowVersion'.
104104
/// </summary>
105105
/// <value>
106106
/// The property value representing column 'RowVersion'.
107107
/// </value>
108-
public Byte[] RowVersion { get; set; }
108+
public Byte[] RowVersion { get; set; } = null!;
109109

110110
#endregion
111111

sample/Tracker/Tracker.Core/Data/Entities/Priority.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ public Priority()
3434
/// <value>
3535
/// The property value representing column 'Name'.
3636
/// </value>
37-
public string Name { get; set; }
37+
public string Name { get; set; } = null!;
3838

3939
/// <summary>
4040
/// Gets or sets the property value representing column 'Description'.
4141
/// </summary>
4242
/// <value>
4343
/// The property value representing column 'Description'.
4444
/// </value>
45-
public string Description { get; set; }
45+
public string? Description { get; set; }
4646

4747
/// <summary>
4848
/// Gets or sets the property value representing column 'DisplayOrder'.
@@ -74,7 +74,7 @@ public Priority()
7474
/// <value>
7575
/// The property value representing column 'CreatedBy'.
7676
/// </value>
77-
public string CreatedBy { get; set; }
77+
public string? CreatedBy { get; set; }
7878

7979
/// <summary>
8080
/// Gets or sets the property value representing column 'Updated'.
@@ -90,15 +90,15 @@ public Priority()
9090
/// <value>
9191
/// The property value representing column 'UpdatedBy'.
9292
/// </value>
93-
public string UpdatedBy { get; set; }
93+
public string? UpdatedBy { get; set; }
9494

9595
/// <summary>
9696
/// Gets or sets the property value representing column 'RowVersion'.
9797
/// </summary>
9898
/// <value>
9999
/// The property value representing column 'RowVersion'.
100100
/// </value>
101-
public Byte[] RowVersion { get; set; }
101+
public Byte[] RowVersion { get; set; } = null!;
102102

103103
#endregion
104104

sample/Tracker/Tracker.Core/Data/Entities/Role.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ public Role()
3434
/// <value>
3535
/// The property value representing column 'Name'.
3636
/// </value>
37-
public string Name { get; set; }
37+
public string Name { get; set; } = null!;
3838

3939
/// <summary>
4040
/// Gets or sets the property value representing column 'Description'.
4141
/// </summary>
4242
/// <value>
4343
/// The property value representing column 'Description'.
4444
/// </value>
45-
public string Description { get; set; }
45+
public string? Description { get; set; }
4646

4747
/// <summary>
4848
/// Gets or sets the property value representing column 'Created'.
@@ -58,7 +58,7 @@ public Role()
5858
/// <value>
5959
/// The property value representing column 'CreatedBy'.
6060
/// </value>
61-
public string CreatedBy { get; set; }
61+
public string? CreatedBy { get; set; }
6262

6363
/// <summary>
6464
/// Gets or sets the property value representing column 'Updated'.
@@ -74,15 +74,15 @@ public Role()
7474
/// <value>
7575
/// The property value representing column 'UpdatedBy'.
7676
/// </value>
77-
public string UpdatedBy { get; set; }
77+
public string? UpdatedBy { get; set; }
7878

7979
/// <summary>
8080
/// Gets or sets the property value representing column 'RowVersion'.
8181
/// </summary>
8282
/// <value>
8383
/// The property value representing column 'RowVersion'.
8484
/// </value>
85-
public Byte[] RowVersion { get; set; }
85+
public Byte[] RowVersion { get; set; } = null!;
8686

8787
#endregion
8888

sample/Tracker/Tracker.Core/Data/Entities/Status.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ public Status()
3434
/// <value>
3535
/// The property value representing column 'Name'.
3636
/// </value>
37-
public string Name { get; set; }
37+
public string Name { get; set; } = null!;
3838

3939
/// <summary>
4040
/// Gets or sets the property value representing column 'Description'.
4141
/// </summary>
4242
/// <value>
4343
/// The property value representing column 'Description'.
4444
/// </value>
45-
public string Description { get; set; }
45+
public string? Description { get; set; }
4646

4747
/// <summary>
4848
/// Gets or sets the property value representing column 'DisplayOrder'.
@@ -74,7 +74,7 @@ public Status()
7474
/// <value>
7575
/// The property value representing column 'CreatedBy'.
7676
/// </value>
77-
public string CreatedBy { get; set; }
77+
public string? CreatedBy { get; set; }
7878

7979
/// <summary>
8080
/// Gets or sets the property value representing column 'Updated'.
@@ -90,15 +90,15 @@ public Status()
9090
/// <value>
9191
/// The property value representing column 'UpdatedBy'.
9292
/// </value>
93-
public string UpdatedBy { get; set; }
93+
public string? UpdatedBy { get; set; }
9494

9595
/// <summary>
9696
/// Gets or sets the property value representing column 'RowVersion'.
9797
/// </summary>
9898
/// <value>
9999
/// The property value representing column 'RowVersion'.
100100
/// </value>
101-
public Byte[] RowVersion { get; set; }
101+
public Byte[] RowVersion { get; set; } = null!;
102102

103103
#endregion
104104

sample/Tracker/Tracker.Core/Data/Entities/Task.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ public Task()
4949
/// <value>
5050
/// The property value representing column 'Title'.
5151
/// </value>
52-
public string Title { get; set; }
52+
public string Title { get; set; } = null!;
5353

5454
/// <summary>
5555
/// Gets or sets the property value representing column 'Description'.
5656
/// </summary>
5757
/// <value>
5858
/// The property value representing column 'Description'.
5959
/// </value>
60-
public string Description { get; set; }
60+
public string? Description { get; set; }
6161

6262
/// <summary>
6363
/// Gets or sets the property value representing column 'StartDate'.
@@ -113,7 +113,7 @@ public Task()
113113
/// <value>
114114
/// The property value representing column 'CreatedBy'.
115115
/// </value>
116-
public string CreatedBy { get; set; }
116+
public string? CreatedBy { get; set; }
117117

118118
/// <summary>
119119
/// Gets or sets the property value representing column 'Updated'.
@@ -129,15 +129,15 @@ public Task()
129129
/// <value>
130130
/// The property value representing column 'UpdatedBy'.
131131
/// </value>
132-
public string UpdatedBy { get; set; }
132+
public string? UpdatedBy { get; set; }
133133

134134
/// <summary>
135135
/// Gets or sets the property value representing column 'RowVersion'.
136136
/// </summary>
137137
/// <value>
138138
/// The property value representing column 'RowVersion'.
139139
/// </value>
140-
public Byte[] RowVersion { get; set; }
140+
public Byte[] RowVersion { get; set; } = null!;
141141

142142
#endregion
143143

@@ -149,7 +149,7 @@ public Task()
149149
/// The the navigation property for entity <see cref="User" />.
150150
/// </value>
151151
/// <seealso cref="AssignedId" />
152-
public virtual User AssignedUser { get; set; }
152+
public virtual User? AssignedUser { get; set; }
153153

154154
/// <summary>
155155
/// Gets or sets the navigation property for entity <see cref="Priority" />.
@@ -158,7 +158,7 @@ public Task()
158158
/// The the navigation property for entity <see cref="Priority" />.
159159
/// </value>
160160
/// <seealso cref="PriorityId" />
161-
public virtual Priority Priority { get; set; }
161+
public virtual Priority? Priority { get; set; }
162162

163163
/// <summary>
164164
/// Gets or sets the navigation property for entity <see cref="Status" />.
@@ -167,7 +167,7 @@ public Task()
167167
/// The the navigation property for entity <see cref="Status" />.
168168
/// </value>
169169
/// <seealso cref="StatusId" />
170-
public virtual Status Status { get; set; }
170+
public virtual Status Status { get; set; } = null!;
171171

172172
/// <summary>
173173
/// Gets or sets the navigation property for entity <see cref="TaskExtended" />.
@@ -176,7 +176,7 @@ public Task()
176176
/// The the navigation property for entity <see cref="TaskExtended" />.
177177
/// </value>
178178
/// <seealso cref="Id" />
179-
public virtual TaskExtended TaskExtended { get; set; }
179+
public virtual TaskExtended TaskExtended { get; set; } = null!;
180180

181181
/// <summary>
182182
/// Gets or sets the navigation property for entity <see cref="Tenant" />.
@@ -185,7 +185,7 @@ public Task()
185185
/// The the navigation property for entity <see cref="Tenant" />.
186186
/// </value>
187187
/// <seealso cref="TenantId" />
188-
public virtual Tenant Tenant { get; set; }
188+
public virtual Tenant Tenant { get; set; } = null!;
189189

190190
#endregion
191191

sample/Tracker/Tracker.Core/Data/Entities/TaskExtended.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@ public TaskExtended()
3333
/// <value>
3434
/// The property value representing column 'UserAgent'.
3535
/// </value>
36-
public string UserAgent { get; set; }
36+
public string? UserAgent { get; set; }
3737

3838
/// <summary>
3939
/// Gets or sets the property value representing column 'Browser'.
4040
/// </summary>
4141
/// <value>
4242
/// The property value representing column 'Browser'.
4343
/// </value>
44-
public string Browser { get; set; }
44+
public string? Browser { get; set; }
4545

4646
/// <summary>
4747
/// Gets or sets the property value representing column 'OperatingSystem'.
4848
/// </summary>
4949
/// <value>
5050
/// The property value representing column 'OperatingSystem'.
5151
/// </value>
52-
public string OperatingSystem { get; set; }
52+
public string? OperatingSystem { get; set; }
5353

5454
/// <summary>
5555
/// Gets or sets the property value representing column 'Created'.
@@ -65,7 +65,7 @@ public TaskExtended()
6565
/// <value>
6666
/// The property value representing column 'CreatedBy'.
6767
/// </value>
68-
public string CreatedBy { get; set; }
68+
public string? CreatedBy { get; set; }
6969

7070
/// <summary>
7171
/// Gets or sets the property value representing column 'Updated'.
@@ -81,15 +81,15 @@ public TaskExtended()
8181
/// <value>
8282
/// The property value representing column 'UpdatedBy'.
8383
/// </value>
84-
public string UpdatedBy { get; set; }
84+
public string? UpdatedBy { get; set; }
8585

8686
/// <summary>
8787
/// Gets or sets the property value representing column 'RowVersion'.
8888
/// </summary>
8989
/// <value>
9090
/// The property value representing column 'RowVersion'.
9191
/// </value>
92-
public Byte[] RowVersion { get; set; }
92+
public Byte[] RowVersion { get; set; } = null!;
9393

9494
#endregion
9595

@@ -101,7 +101,7 @@ public TaskExtended()
101101
/// The the navigation property for entity <see cref="Task" />.
102102
/// </value>
103103
/// <seealso cref="TaskId" />
104-
public virtual Task Task { get; set; }
104+
public virtual Task Task { get; set; } = null!;
105105

106106
#endregion
107107

sample/Tracker/Tracker.Core/Data/Entities/Tenant.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ public Tenant()
3434
/// <value>
3535
/// The property value representing column 'Name'.
3636
/// </value>
37-
public string Name { get; set; }
37+
public string Name { get; set; } = null!;
3838

3939
/// <summary>
4040
/// Gets or sets the property value representing column 'Description'.
4141
/// </summary>
4242
/// <value>
4343
/// The property value representing column 'Description'.
4444
/// </value>
45-
public string Description { get; set; }
45+
public string? Description { get; set; }
4646

4747
/// <summary>
4848
/// Gets or sets the property value representing column 'IsActive'.
@@ -66,7 +66,7 @@ public Tenant()
6666
/// <value>
6767
/// The property value representing column 'CreatedBy'.
6868
/// </value>
69-
public string CreatedBy { get; set; }
69+
public string? CreatedBy { get; set; }
7070

7171
/// <summary>
7272
/// Gets or sets the property value representing column 'Updated'.
@@ -82,15 +82,15 @@ public Tenant()
8282
/// <value>
8383
/// The property value representing column 'UpdatedBy'.
8484
/// </value>
85-
public string UpdatedBy { get; set; }
85+
public string? UpdatedBy { get; set; }
8686

8787
/// <summary>
8888
/// Gets or sets the property value representing column 'RowVersion'.
8989
/// </summary>
9090
/// <value>
9191
/// The property value representing column 'RowVersion'.
9292
/// </value>
93-
public Byte[] RowVersion { get; set; }
93+
public Byte[] RowVersion { get; set; } = null!;
9494

9595
#endregion
9696

0 commit comments

Comments
 (0)