Recent Entries 2
- pattern critical 112d agoDynamic LINQ OrderBy on IEnumerable<T> / IQueryable<T>I found an example in the VS2008 Examples for Dynamic LINQ that allows you to use a SQL-like string (e.g. `OrderBy("Name, Age DESC"))` for ordering. Unfortunately, the method included only works on `IQueryable`. Is there any way to get this functionality on `IEnumerable`?
- principle critical 112d agoReturning IEnumerable<T> vs. IQueryable<T>What is the difference between returning `IQueryable` vs. `IEnumerable`, when should one be preferred over the other? ``` IQueryable custs = from c in db.Customers where c.City == "" select c; IEnumerable custs = from c in db.Customers where c.City == "" select c; ``` Will both be deferred execution and when should one be preferred over the other?