Skip to content

Commit b4c15a2

Browse files
committed
Removed nullable type for QuantityPerUnit
1 parent 07238e1 commit b4c15a2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

NorthwindCRUD/Models/Contracts/IProduct.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public interface IProduct
88

99
int? CategoryId { get; set; }
1010

11-
string? QuantityPerUnit { get; set; }
11+
string QuantityPerUnit { get; set; }
1212

1313
double? UnitPrice { get; set; }
1414

NorthwindCRUD/Models/DbModels/ProductDb.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class ProductDb : IProduct
1818

1919
public CategoryDb? Category { get; set; }
2020

21-
public string? QuantityPerUnit { get; set; }
21+
public string QuantityPerUnit { get; set; }
2222

2323
public double? UnitPrice { get; set; }
2424

NorthwindCRUD/Models/Dtos/ProductDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class ProductDto : IProduct
1010

1111
public int? CategoryId { get; set; }
1212

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

1515
public double? UnitPrice { get; set; }
1616

0 commit comments

Comments
 (0)