Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation property for recursive relations is badly named. #1

Open
RagingKore opened this issue May 7, 2014 · 0 comments
Open

Navigation property for recursive relations is badly named. #1

RagingKore opened this issue May 7, 2014 · 0 comments
Assignees
Labels

Comments

@RagingKore
Copy link
Owner

    //Properties
    public int PersonId { get; set; } // PersonId (Primary key)
    public string Name { get; set; } // Name
    public int? FatherId { get; set; } // FatherId

    //Navigation properties
    public virtual ICollection<Person> Fathers { get; set; } // Person.FK_Person_Father
    public virtual Person Father { get; set; } // FK_Person_Father

Fathers should be People.

@RagingKore RagingKore self-assigned this May 7, 2014
@RagingKore RagingKore added the bug label May 7, 2014
@RagingKore RagingKore added this to the Stable Version milestone May 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant