Quantcast
Channel: BlogoSfera » Primary Key
Viewing all articles
Browse latest Browse all 10

Foreign Key References to Primary Key in the Same Table EF6

$
0
0

I have class in my MVC project and I used Entity Framework 6. Every person has a Master (master_Id) and it references to the same table (primary key in Person table). My way does not work… what’s the solution? public class Person { [Key] public int Id { get; set; } public string FirstName { […]

The post Foreign Key References to Primary Key in the Same Table EF6 appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 10

Trending Articles