-
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
Interception point that gets the returned data after serialization #32418
Comments
Can you be more specific about what you mean by this? |
@ajcvickers Consider this code: await dbContext.Set<Person>().Where(x=> x.Name.Contains("foo").ToListAsync() We would want to have an interceptor that gets the Does it make sense? |
@gdoron Yes, but this isn't something that EF can do directly, since enumeration of the query results and the completion of this isn't triggered by EF Core, and EF Core doesn't know what has been done with the results. There is quite a long discussion about this on #23535, and in EF7 we introduced |
@ajcvickers I'm afraid I did not understand how to use the |
@gdoron EF doesn't ever create a |
Hi,
(With some obfuscation because of IP)
All our mapped to EF database entities are deriving from BaseClass:
We are trying to validate that no matter what, the data returned from the database does not include rows the current user doesn't have permission to, (even if the developer used
set.IgnoreQueryFilter()
We would like having another interception point, with the reference to the data returned from the database after serialization, instead of having to materialize the DbDataReader twice.
The text was updated successfully, but these errors were encountered: