Should I return IEnumerable<T> or IQueryable<T> from my DAL?
- by Gary '-'
I know this could be opinion, but I'm looking for best practices.
As I understand, IQueryable implements IEnumerable, so in my DAL, I currently have method signatures like the following:
IEnumerable<Product> GetProducts();
IEnumerable<Product> GetProductsByCategory(int cateogoryId);
Product GetProduct(int productId);
Should I be…