I\'m getting into using the Repository Pattern for data access with the Entity Framework and LINQ as the underpinning of implementation of the non-Test Repository. Most samp
AsQueryable is an extension method for IEnumerable that could do two things:
IEnumerable implements IQueryable justs casts, doing nothing. IEnumerable (EnumerableQuery) that implements every method compiling the lambdas and calling to Enumerable extension methods. So in most of the cases using AsQueryable is useless, unless u are forced to pass a IQueryable to a method and u have a IEnumerable instead, it's a hack.
NOTE: AsQueryable is a hack, IQueryable of course is not!