We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the examples here https://learn.microsoft.com/en-us/ef/core/modeling/relationships/many-to-many
Describing a many-to-many between Blog Posts and Tags. Say I want to find all Blog Posts tagged with a particular tag, intuitively I would do this...
Specification ... Query.Include(tags => tags.Where(tt => tt.TagText == searchTag));
Now, the SQL produced will be something like this: Select Posts., Tags. from Posts LEFT JOIN PostsTags on Posts.Id = PostsTags.PostsId...
This will give me a list of ALL Posts, and the tags will be empty.
I want to tell it to send the SQL with an INNER JOIN, rather than a LEFT join. How do I do that?
In this example, Is there a way to say, bring back only the list of Posts tagged with a particular tag?
The text was updated successfully, but these errors were encountered:
I think I may have answered my own question already. I do this:
Query.Where(p => p.Tags.Select(f => f.TagText).Contains(searchTag));
You folks are incredible that you made that work. Thank you for this wonderful library.
Sorry, something went wrong.
No branches or pull requests
In the examples here
https://learn.microsoft.com/en-us/ef/core/modeling/relationships/many-to-many
Describing a many-to-many between Blog Posts and Tags. Say I want to find all Blog Posts tagged with a particular tag, intuitively I would do this...
Specification
...
Query.Include(tags => tags.Where(tt => tt.TagText == searchTag));
Now, the SQL produced will be something like this:
Select Posts., Tags.
from Posts LEFT JOIN PostsTags on Posts.Id = PostsTags.PostsId...
This will give me a list of ALL Posts, and the tags will be empty.
I want to tell it to send the SQL with an INNER JOIN, rather than a LEFT join. How do I do that?
In this example, Is there a way to say, bring back only the list of Posts tagged with a particular tag?
The text was updated successfully, but these errors were encountered: