How to filter by fields from navigation properties in Entity Framework?
问题 I have classes like: public class ProductInCategory { public Guid Guid { get; set; } public long ProductID { get; set; } public long ProductCategoryID { get; set; } public virtual Product Product { get; set; } public virtual ProductCategory ProductCategory { get; set; } } public class Product { public virtual ICollection<ProductInCategory> ProductsInCategories { get; set; } // and other fields and navigation properties not important for this example } And now I want to execute query which