We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93f3c6c commit 0bb22c7Copy full SHA for 0bb22c7
src/Models/Review.cs
@@ -11,12 +11,12 @@ public class Review
11
[Required]
12
public int MovieId { get; set; }
13
[ForeignKey("MovieId")] // Add ForeignKey attribute
14
- public Movie Movie { get; set; } // Navigation property
+ public Movie? Movie { get; set; } // Navigation property
15
16
17
public int UserId { get; set; }
18
[ForeignKey("UserId")] // Add ForeignKey attribute
19
- public User User { get; set; } // Navigation property
+ public User? User { get; set; } // Navigation property
20
21
[Range(1, 5)]
22
public int Rating { get; set; }
0 commit comments