[DataGrid] Support for multiple IAsyncQueryExecutor registrations#2730
Conversation
…yExecutor registrations and returns the first supporting match.
vnbaaij
left a comment
There was a problem hiding this comment.
Can you give an example of how and why this is handy/better
|
@vnbaaij this change allows an application to use multiple different IQueryProvider implementations instead of a single one. Suppose for instance you want to use EF Core's DataContext and DataServiceQuery for OData queries. |
|
I'm totally not up to speed on EF so don't know what DataServiceQuery does. But judging from the code this change does no do any harm. |
|
I don't have much experience of this either :-) On the other hand, it would be interesting to add a Unit Test. |
|
@dvoituron sure I'll take care of adding unit tests for this feature. |
Pull Request
📖 Description
AsyncQueryExecutorSupplier modified so it looks-up multiple IAsyncQueryExecutor registrations and returns the first one that supports the provided IQueryable items source.