EF Code First with many to many self referencing relationship
问题 I am starting out with using the EF Code First with MVC and am a bit stumped with something. I have the following db structure (Sorry but I was not allowed to post an image unfortunately): Table - Products Table - RelatedProducts 1-Many on Products.ProductID -> RelatedProducts.ProductID 1-Many on Products.ProductID -> RelatedProducts.RelatedProductID Basically I have a product that can have a series of products that are related to it. These are kept in the RelatedProducts table with the