-
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
EFCore will break on Net6 cause Queryable class will be extended and EF Core Reflection will break #24002
Comments
Related to #23996. |
Unless I'm mistaken, this should also be backported otherwise older EF running on newer BCLs would also break... |
@roji yes, all versions without propper fix will not work on net6. |
Notes from triage: @smitpatel to follow up on:
|
PRs out for 3.1/5.0 |
EFCore reflection will break when this Issue is fixed and will be merged into NET6
dotnet/runtime#28776
Problem is EFCore only checks for Parameter count and uses "Single", so it will crash cause there will be now 2 Methods with same Parameter Count:
efcore/src/EFCore/Query/QueryableMethods.cs
Line 477 in 5d53796
EFCore should switch to a safer reflection like done in Linq2db:
https://github.com/linq2db/linq2db/blob/37d0f108214c2fc0e6f1991c9d08627c605a9241/Source/LinqToDB/Reflection/Methods.cs#L42
or in NHibernate
https://github.com/nhibernate/nhibernate-core/blob/master/src/NHibernate/Util/ReflectionCache.cs
The text was updated successfully, but these errors were encountered: