asp.net mvc select from many to many relationship code example
Example: asp.net mvc select from many to many relationship
var prod = EFModel.Products.Where(x => x.Categories.Any(c => c.ID == id));
var prod = EFModel.Products.Where(x => x.Categories.Any(c => c.ID == id));