-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Regression in 2.0.3 preview: NullReferenceException in RelationalDataReader.Dispose() on Migrate() #10147
Comments
@OronDF343 Can you post a project or code listing so we can try to reproduce this? |
@smitpatel Please investigate this per my email. |
…provider Issue #10147 * MySQL provider sometimes has null Parameters collection * MySQL provider sometimes throws when asking for records affected Fix is to be defensive in our code and we will file issues on MySQL provider
Filed PomeloFoundation/Pomelo.EntityFrameworkCore.MySql#418 on MySQL. |
Hi @OronDF343, I am from pomelo, we are fixing this issue, but not finished. For now, you can use .AddDbContext instead of .AddDbContextPool will work. |
Thanks, but unfortunately that workaround did not solve the issue (only one of the DbContext was using .AddDbContextPool and changing that produced the same exceptions). I guess I will downgrade to EF Core 2.0.0 for now (and use non-Async methods for now since 2.0.0 has a bug) |
@OronDF343 A fix for this issue is being included in the 2.0.1 (2.0.3 meta package) patch. |
The following simple case, which worked in 2.0.0, throws a NullReferenceException in the new preview:
Note that it happen with any of my DbContexts, not just the one shown above.
The exception is as follows:
Additionally, when executing a CountAsync and a ToListAsync the following exceptions are thrown, respectively:
Further technical details
EF Core version: 2.0.1-rtm-203
Database Provider: Pomelo.EntityFrameworkCore.MySql (version 2.0.0 as well as 2.0.1-preview-10072)
Operating system: Windows 7 x64
IDE: Visual Studio 2017 15.4.1
The text was updated successfully, but these errors were encountered: