-
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
Use the pre-convention type mapping configuration in query #25509
Conversation
@smitpatel @ajcvickers This change propagates the model to the query services by making them scoped. This worked better than I expected and won't break providers as long as they use the correct service registration pattern (our NTS plugins didn't). However now I'm wondering whether this is what the users would expect to happen. They configure the mapping for |
src/EFCore.Relational/Query/RelationalQueryableMethodTranslatingExpressionVisitor.cs
Show resolved
Hide resolved
Also I propose that |
I agree with the concerns over Properties, but I worry that figuring out when to use Properties and when to use Scalars will be hard. Even figuring what is and isn't a "scalar" can be hard. But I can also see that a single set of semantics (i.e. one method, however it is named) doesn't work very well. I wonder if we should punt on this for 6.0 and wait for feedback? |
aa11926
to
e69adb7
Compare
This will probably require good documentation or perhaps just start with a warning that
Or we can ship it in RC1 and wait for feedback. |
Okay with me to ship in RC1. |
aad339f
to
a3a06cf
Compare
Just spent a few hours tracking down some seemingly unrelated test failures to this... |
Any suggestions for other providers? Should we emphasize that |
Yeah... In theory would it be possible to actually check if services registered via TryAddProviderSpecificServices are actually not provider-specific, and throw an informative message? Though if that's complicated it may not be worth it... |
Part of #25084