-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query: Simplify aliases for complex projection if being used in order by clause in new pipeline #18775
Comments
It used work in old pipeline with a lot of bugs Should be easy step in posttranslation. |
Any workaround? I´m struggling to get containstable rank in an fromsqlinterpolated, wish to at last orderby Rank, as 'Rank' is not a property of my entity and is generated Appreciate your help. |
@lixaotec the queries should still work, just the sql we generate is not optimal. Can you provide more info on what exactly you are trying to do and how are you trying to do this? - full code listing would be the best. |
I wish to project afromsqlinterpolated directly onto a DTO, however its seems not possible as I need to indicate the entity in Db.Set() ... In short, retrieving Rank information from a fromsqlinterpolate with FullTextSearch containstable is not possible if Rank isn´t present as a column in the entity. I found out that EFCore supports Keyless entity, a thing that seem to allow such thing. as I define an entity that has a Rank field, not necessarily an entity. But the strange thing is that I still have to register it in modelbuilder. Keyless seem to be the closer concept near to making EFCore know a DTO class. Thanks |
Any news on this?. |
@cdrfenix this issue is assigned to the backlog milestone, meaning that unfortunately we don't plan to implement it in the upcoming release of EF Core. |
I've started prototyping around with this, do i need to create a new expression type to reference the |
query:
translation:
expected translation:
This used to work in the old pipeline - see #6703
The text was updated successfully, but these errors were encountered: