hazzik / DelegateDecompiler

A library which is able to decompile a delegate or a method body to its lambda representation
MIT License
526 stars 62 forks source link

Fix for #51 #97

Closed gvas closed 7 years ago

gvas commented 7 years ago

The nongeneric DecompiledQueryable and AsyncDecompiledQueryable classes were deleted. Work is delegated to the generic CreateQuery<TElement>() methods from the nongeneric ones in DecompiledQueryProvider and in AsyncDecompiledQueryProvider.

All classes that implement IQueryable should also implement IQueryable<T> and vice versa. The nongeneric IQueryable exists primarily to give you a weakly typed entry point primarily for dynamic query building scenarios. source Entity Framework's query provider does the same work delegation. source This change also prevents the exceptions thrown by Microsoft's OData implementation when it tries to cast a compiled query to an IQueryable<T>

hazzik commented 7 years ago

Thanks. I've cleaned up your pr.

gvas commented 7 years ago

Cool, thanks!

himebaugh commented 7 years ago

Any idea when this fix will be available from NuGet as .23? I'm in the midst of working with OData and AutoMapper and I believe this will fix my issue when performing an $expand and $top/$skip together.

hazzik commented 7 years ago

Released as 0.23.0