Multiple foreign keys within same table using code frist enitty framework and navigation property
Multiple foreign keys within same table using code frist enitty framework and navigation property in parent table In this example show you, how to work with multiple foreign key reference to the same table using Code First Entity Framework and Navigation Property First we need to create a two table User and contactNumber, where User table is primary table and contactNumber is a secondary table public class User { [ DatabaseGenerated ( DatabaseGeneratedOption .Identity)] public int Id { get ; set ; } public string Name { get ; set ; } public virtual ICollection < ContactNumbers > contactNumbers { get ; set ; } } public class ContactNumber { [ DatabaseGenerated ( DatabaseGeneratedOption .Identity)] ...