-
Notifications
You must be signed in to change notification settings - Fork 386
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
Error when using Pomelo 6.0 Preview 6/7 together with EF Core 6.0 RC1 #1532
Comments
See #1413 (comment) and try the nightly builds. |
A compatible nightly build should be up by tomorrow. The actual upgrade is already done, I am just fixing and adjusting the tests for the different server versions. |
Testing with nuget in version 6.0.0-preview.7.ci.20211007023054 I am getting the same exception. I am using context with abstraction: // configuration
services.AddDbContext<IDataContext, MySqlDataContext>(
options => options.UseMySql(connectionString, new MySqlServerVersion(new Version(8, 0, 26)))
);
// context
public class MySqlDataContext : DbContext, IDataContext
{
public MySqlDataContext(DbContextOptions<MySqlDataContext> options)
: base(options)
{
}
} |
@FrantisekSidak See my previous comment:
The PR that makes it work is #1531. Once we have merged it (probably later today), it should work. |
Ok. I read your comment carefully, but by dates it seemed new version should be out already. Thank you for details. |
@FrantisekSidak No, sometime today (we are publishing The nightly build compatible with EF Core 6.0 RC1 should have the format |
Prerelease |
It works now. Thank you! |
I'm still getting this exception even when using the nightly build. Version of Pomelo.EntityFrameworkCore.MySql: Exception:
|
@duckwaffle Do you also get an exception when using the Pomelo RC1 nightly build with the EF Core RC1 release? The only change regarding the So this issue should not appear with Pomelo You should make absolutely sure, that you are using the expected versions (check the versions of the actual DLL files in the folder you are running your app from). |
@lauxjpn thanks for that clarification, I was using the RC2 version of EFCore it turns out, not the RC1 version. Downgrading to RC1 EFCore fixed the issue for me :) |
Here is my code:
It works well on .net5 with EFCORE 5.0.10 and Pomelo.EntityFrameworkCore.MySql 5.0.2.
However, after I upgrade to.net6 RC with EFCORE 6 RC and Pomelo.EntityFrameworkCore.MySql Preview6. It reports this error:
What's wrong with this and how can I solve this? Thank you.
The text was updated successfully, but these errors were encountered: