Open dimiste opened 5 years ago
Why in model class "ContestQuestion" at the property "ContestId" we have "ForeignKey" Attribute
[ForeignKey("Contest")] public int ContestId { get; set; } public virtual Contest Contest { get; set; }
and the other model class "Contest" at the property "CategoryId" we haven't?
public int? CategoryId { get; set; } public virtual ContestCategory Category { get; set; }
Why in model class "ContestQuestion" at the property "ContestId" we have "ForeignKey" Attribute
and the other model class "Contest" at the property "CategoryId" we haven't?