i want all products to be available under current category including all child categories. my code is something like this :
int[] toCheck =new int[2];
toCheck[0] = 1;
toCheck[1] = 2;
toCheck[2] = 3;
var products = db.Products.Include(x => x.categoryByProductID).Where(x => x.CategoryID in ?);
here categoryByProductID = all child categories,
? = how can i use toCheck[] array
or any other solution to check CategoryID with predefined values !!!
any help appreciable ...