You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I originally had an issue which I ran into when upgrading my project to support .Net 6 (see here). Through some assistance I was able to get it working, which it does as long as you use the default IServiceProvider.
A user is running into an issue when registering a custom IServiceProvider (ticket here). I have been able to reproduce the issue and have created a new branch and added a unit test to help with debugging the issue.
Similar to my original ticket above, I'm not sure if there is a bug in EFCore or if there is something wrong with how the services are being registered here
If I comment out the registration of any of the IMethodCallTranslatorPlugin (lines 15-20) then the exception does not occur.
I apologize for reaching out here for support on this as I know your time is valuable but I'm at a loss on this one. I've tried debugging with the source symbols downloaded and navigating through the EF code but without any luck as it's a little over my head how the internal registration works. I appreciate any assistance with this.
The text was updated successfully, but these errors were encountered:
Thanks for the quick response! Unfortunately, it doesn't help :( The documentation suggests using TryAdd, which is what I had to change it to in order to get it to work with .Net 6. Unfortunately, the error still throws when using a custom IServiceProvider and calling UseInternalServiceProvider. I also tried the suggestion of using AddScoped to register the services, also to no avail.
Preface: I am the author of the EF Core NodaTime NuGet package whose project is located here: EFCore.SqlServer.NodaTime.
I originally had an issue which I ran into when upgrading my project to support .Net 6 (see here). Through some assistance I was able to get it working, which it does as long as you use the default
IServiceProvider
.A user is running into an issue when registering a custom
IServiceProvider
(ticket here). I have been able to reproduce the issue and have created a new branch and added a unit test to help with debugging the issue.The exception that is thrown is:
Similar to my original ticket above, I'm not sure if there is a bug in EFCore or if there is something wrong with how the services are being registered here
If I comment out the registration of any of the
IMethodCallTranslatorPlugin
(lines 15-20) then the exception does not occur.I apologize for reaching out here for support on this as I know your time is valuable but I'm at a loss on this one. I've tried debugging with the source symbols downloaded and navigating through the EF code but without any luck as it's a little over my head how the internal registration works. I appreciate any assistance with this.
The text was updated successfully, but these errors were encountered: