Strange Exception thrown using Dynamic Linq Entity Framework Query
问题 I have a gallery entity framework class,and I'm attempting to use the Dynamic Linq Library posted on ScottGu's blog to query the entity set. The failing line of code reads: return context.Galleries.OrderBy(sidx + " " + sord).Skip(page * rows).Take(rows).ToList(); sidx=="Name", and sord=="desc". The Gallery object does have a property called "Name". However, when executed, i get the following exception: 'Title' could not be resolved in the current scope or context. Make sure that all