Skip to content

Commit 07238e1

Browse files
committed
Removed wrong nullable type CompanyName
1 parent 54d02fa commit 07238e1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

NorthwindCRUD/Models/Contracts/ICustomer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public interface ICustomer
66
{
77
string CustomerId { get; set; }
88

9-
string? CompanyName { get; set; }
9+
string CompanyName { get; set; }
1010

1111
string ContactName { get; set; }
1212

NorthwindCRUD/Models/DbModels/CustomerDb.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class CustomerDb : ICustomer
1010
[DatabaseGenerated(DatabaseGeneratedOption.None)]
1111
public string CustomerId { get; set; }
1212

13-
public string? CompanyName { get; set; }
13+
public string CompanyName { get; set; }
1414

1515
public string ContactName { get; set; }
1616

NorthwindCRUD/Models/Dtos/CustomerDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class CustomerDto : ICustomer
88
public string CustomerId { get; set; }
99

1010
[Required]
11-
public string? CompanyName { get; set; }
11+
public string CompanyName { get; set; }
1212

1313
public string ContactName { get; set; }
1414

0 commit comments

Comments
 (0)