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

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -