-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Expressions not working with global query filters #33
Comments
Seems like this is the method not implemented https://github.com/dotnet/efcore/blob/e2a5f01d041d97630f4852371a6614497f69bdb1/src/EFCore/Query/Internal/IQueryCompiler.cs#L61 |
Hang on, which version of expressionify are you using? It looks like v6, but you need v9 |
I used the latest available from nuget.org at the time when i made this post. (about 3 days ago) EDIT: Wait. VS has installed 6.6.0. For some reason, latest version was not the default option. I'll retest! |
Sorry for the confusion. The VS had 6.6.0 as a default version. I updated to 9.0.0 and got this error now:
|
I'm trying to use Expressionify together with global query filters and it seems it is not working.
To reproduce:
Tenant
User
, which hasTenant
andTenantId
propertyProduct
, which hasUser
andUserId
propertypublic static int GetTenantId(Product p) => p.User.TenantId;
intoProduct
entityDbContext.OnModelCreating()
, add filter:modelBuilder.Entity<Product>().HasQueryFilter(x => x.GetTenantId() == 3);
Exception:
The text was updated successfully, but these errors were encountered: