I have this scenario:
public class Member { public int MemberID { get; set; } public string FirstName { get; set; } public string LastName { get
One way to solve this error is to put the ForeignKey attribute on top of the property you want as a foreign key and add the navigation property.
ForeignKey
Note: In the ForeignKey attribute, between parentheses and double quotes, place the name of the class referred to in this way.