-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
SearchChildren With EFCore #43
Comments
I'm running into the same problem here, it seems like it has no effect.. |
Hi @jasonhill Thanks for raising this issue. The var shops = context.Shops.SearchChildren(s => s.Products)
.With(p => p.Name)
.Containing("ball"); should produce sometihng similar to SELECT [Extent1].[Id] AS [Id]
-- Additional columns --
FROM [dbo].[Shops] AS [Extent1]
WHERE EXISTS (
SELECT 1 AS [C1]
FROM [dbo].[Products] AS [Extent2]
WHERE ([Extent1].[Id] = [Extent2].[Shop_Id])
AND ([Extent2].[Name] LIKE N'%ball%')
) Do you still have the example you are having trouble with? |
@ninjanye Hi, yes, it doesn't work
SQL
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have tried using SearchChildren with EFCore and a query against a SQL database but it doesn't seem to be applying any filters in the generated SQL query.
I saw an old blog post that indicated this might only be available with in-memory queries - is that still the case?
The text was updated successfully, but these errors were encountered: