Query: Compiled Queries: Support "non-rooted" query expressions
See original GitHub issueUser compiled queries allow for more expressiveness in creating query LINQ expressions. E.g.
var query = EF.CompileQuery(
(NorthwindContext context)
=> context.Customers.OrderBy(c => c.CustomerID).Select(c => c.CustomerID).FirstOrDefault()
+ context.Orders.OrderBy(o => o.CustomerID).Select(o => o.CustomerID).FirstOrDefault());
This particular query currently fails, I think because of a re-linq issue. In general, we should decide whether we want to spend time on making this work and testing it.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
SWQL queries not working in Custom ...
SWQL queries not working in Custom Query and Custom Reports since NPM v12 but still working in ... ON appl.id = comp.applicationid inner...
Read more >How to combine series of two criteria queries into single ...
I have the following JPQL query which I need to convert to criteria query: SELECT new Tag(t.id, t.name) FROM GiftCertificate gc JOIN gc.tags ......
Read more >Combined non-Nested and Nested Query in Elasticsearch
This assumes you are using the actual Nested documents, and not inner objects. For inner objects you can just use fully qualified paths...
Read more >Advanced Query Functions
A JOIN is the method used to combine data from two different tables into one set of results. For example, querying the JOB....
Read more >Combine multiple queries (Power Query)
Power Query provides an intuitive user interface for combining multiple queries within your Excel workbook by merging or appending them.
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
Exception:
This:
Is sugar for:
(oops, I did
(queryable, contId) => queryable.AddIncludes().FirstOrDefault(d => d.Id == contId)
instead, but you get the point)Note how
AddIncludes
is referenced above. In order for the calls inside yourAddIncludes
method to become available, Entity Framework would have to somehow decompile yourAddIncludes
method and construct an expression which represents what it does.