Linq Queryable Decorator
See original GitHub issueSomeone may know the answer to this but as we do not expose the LinqQueryable
how would a consumer chain extra linq methods other than just a .Where(x => ...)
clause, would we need to add some sort of extra API for this?
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (5 by maintainers)
Top Results From Across the Web
How to implement custom LINQ Provider for decorator?
I have a project that allows for some computed properties and business logic implemented via decorator and interfaces that controls all access ...
Read more >Composed LINQ Queries using the Decorator Pattern
Query Decorators Personally, I use the decorator pattern to solve the problem of decomposing LINQ queries into more granular and reusable parts ......
Read more >IQueryable Interface (System.Linq)
Provides functionality to evaluate queries against a specific data source wherein the type of the data is not specified.
Read more >IEnumerable and IQueryable in C# - Dot Net Tutorials
In this article, I am going to discuss IEnumerable and IQueryable in C# with examples. Both IQueryable and IEnumerable are interfaces in C#....
Read more >IEnumerable VS IQueryable
In LINQ to query data from database and collections, we use IEnumerable and IQueryable for data manipulation. IEnumerable is inherited by ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@IEvangelist what are your thoughts on this API?
This work’s nicely for the LINQ operators that result in an
IQueryable<TItem>
but not so much for using operators such as.Select(item => item.Id)
I did kind of go down the root of the this API but then this kind of break’s the pattern of the whole Repository by now not returning aTItem
this was it what do you think?The API above does add a lot of complications internally to the library.
Yes, that would be the plan using a wrapper similar to what I put above. I was thinking just to start with the basic ones to begin with such as
OrderBy