c# - Lambda Expression to filter Included Entities -
i have query,
var productcategories = _dbcontext .set<productcategory>() .include(x => x.productincategories) .theninclude(x => x.product) .theninclude(x => x.productmetadatas) .where(x => x.active) .tolist(); but, can't filter products in query. want have active products. appreciated.
Comments
Post a Comment