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
Release 3.3.0 not working with MySql #137
Comments
Hello, |
I have changed Extension.Data.EntityFramework.Sqlite to Extension.Data.EntityFramework.MySql in all files. |
You must also change in csproj files the line |
The same error. $dotnet restore test$ dotnet run --project "/test/src/WebApplication/WebApplication.csproj" info: ExtCore.WebApplication[0] After request: info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1] |
Do not forget to copy the new mysql dll on the old one. |
The same result as early -> not working with the same error.I added line in WebApplication.csproj (latest version of EFC - 8.0.12) And now comes other error: |
Here is the project. DB INSERT INTO |
So, this is a MySQL .NET Connector bug: https://bugs.mysql.com/bug.php?id=89855. See: dotnet/efcore#11078 Use https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql waiting for the Oracle patch |
So, can we have current implementation working for now? I mean using MySql.Data.EntityFrameworkCore 8.0.12, without moving to Pomelo.EntityFrameworkCore.MySql. |
Hi, @DmitrySikorsky The answer is no. The bug is still open at Oracle. Everyone depends on Oracle's goodwill, but he does not seem to have any. |
Oh. So now we just keep it as is? Is it the best option? |
Hi Dmitry, yes, the issue can be closed with a significant label such as "bug-external" or "closed-external". On the Oracle bug, someone lately commented that the Enterprise Oracle version fixes it, but they're not willing to copy the fix to the community version... not surprising but sad. |
I've updated MySQL provider version to 8.0.13. As I understand from the @Xarkam 's link, this issue might be fixed in the 4.0.0-alpha2. Could somebody, who has MySQL installed, verify that? Thanks! |
Updating: EF version 2.1 is don't supported by mysql connector befor version 8.0.13. Look this page for versions compatibilities: https://dev.mysql.com/doc/connector-net/en/connector-net-entityframework-core.html |
I downloaded the Project 'ExtCore framework 3.3.0 sample web application that uses a database'.
Then I replaced SQLite with MySql.
The project was compiled without errors.
But with request I get the error:
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HLGK01K4H0K5", Request id "0HLGK01K4H0K5:00000003": An unhandled exception was thrown by the application.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'MySql.Data.EntityFrameworkCore.Storage.Internal.MySQLTypedRelationalValueBufferFactory' from assembly 'MySql.Data.EntityFrameworkCore, Version=8.0.11.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' because the parent type is sealed.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeAssembly.get_DefinedTypes()
at Microsoft.AspNetCore.Mvc.Controllers.ControllerFeatureProvider.PopulateFeature(IEnumerable
1 parts, ControllerFeature feature) at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateFeature[TFeature](TFeature feature) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.GetControllerTypes() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.BuildModel() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.GetDescriptors() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.OnProvidersExecuting(ActionDescriptorProviderContext context) at Microsoft.AspNetCore.Mvc.Internal.ActionDescriptorCollectionProvider.UpdateCollection() at Microsoft.AspNetCore.Mvc.Internal.ActionDescriptorCollectionProvider.get_ActionDescriptors() at Microsoft.AspNetCore.Mvc.Internal.AttributeRoute.GetTreeRouter() at Microsoft.AspNetCore.Mvc.Internal.AttributeRoute.RouteAsync(RouteContext context) at Microsoft.AspNetCore.Routing.RouteCollection.RouteAsync(RouteContext context) at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication
1 application)System.TypeLoadException: Could not load type 'MySql.Data.EntityFrameworkCore.Storage.Internal.MySQLTypedRelationalValueBufferFactory' from assembly 'MySql.Data.EntityFrameworkCore, Version=8.0.11.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' because the parent type is sealed.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 2.4005ms 500
The text was updated successfully, but these errors were encountered: