Skip to content

ForeignKey Attribute #543

Open
Open
@dimiste

Description

@dimiste

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; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions