We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e090b62 commit d532092Copy full SHA for d532092
2 files changed
WebApiLab.DAL/Entities/OrderItem.cs
@@ -6,11 +6,11 @@ public class OrderItem
6
7
public int ProductId { get; set; }
8
9
- public Product? Product { get; set; } = null!;
+ public Product Product { get; set; } = null!;
10
11
public int OrderId { get; set; }
12
13
- public Order? Order { get; set; } = null!;
+ public Order Order { get; set; } = null!;
14
15
public int Quantity { get; set; }
16
WebApiLab.DAL/Entities/Product.cs
@@ -12,7 +12,8 @@ public class Product
public int UnitPrice { get; set; }
public int CategoryId { get; set; }
- public Category? Category { get; set; }
+
+ public Category Category { get; set; } = null!;
17
18
public ICollection<OrderItem> ProductOrders { get; } = new List<OrderItem>();
19
0 commit comments