How to access many-to-many table via Entity Framework? asp.net
问题 How do I read a many-to-many table via EF? I have no idea how to use the many-to-many table. Let's say Product_Category where it got ProductID and CategoryID . How can I access it trough e.g. using(Entities db = new Entities) { /* cant access these here.. */} method?? I can however reach Product_Category , but cant access its ProductID or CategoryID . I want to list every product e.g. where Product_Category.CategoryID == Category.ID . I have never used many-to-many tables before, so I