Entity Framework 6 Adding properties to join tables
问题 This is the scenario: I have a products table and a categories table. The relationship is many-to-many: a category can have 1 or more products....and a product can be in 1 or more categories... The Code-First mapping looks like this.... public class Product { //...additional properties... public virtual ICollection<Category> AssociatedCategories {get; set;} } public class Category { //...additional properties... public virtual ICollection<Product> AssociatedProducts {get; set;} } Now, under