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
{{ message }}
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.
Glimpse.EF6 does not appear to work with the recently release Entity Framework 6.2. On startup I receive a NullReferenceException.
The exception appears to come from a call to DbMigrator.GetPendingMigrations().
After a bit of debugging, it looks like a DbConnection is disposed of, which causes the GlimpseDbConnection to set the InnerConnection to null. I think another call is then made to the same connection after disposal, which then causes a NullReferenceException.
The same code worked with EF 6.1.3 and Glimpse.EF6
There is a proposed workaround on the EF issue, and there is also a suggested fix for the Glimpse code.
source Error:
Line 46: var migrator = new DbMigrator(_configuration);
Line 47:
Line 48: if (migrator.GetPendingMigrations().Any())
Line 49: {
Line 50: migrator.Update();
Hi,
This is a cross post from the EF project
ref: dotnet/ef6#398
ref: https://github.com/rikrak/EF6_2_InitialisationError
Glimpse.EF6 does not appear to work with the recently release Entity Framework 6.2. On startup I receive a NullReferenceException.
The exception appears to come from a call to DbMigrator.GetPendingMigrations().
After a bit of debugging, it looks like a DbConnection is disposed of, which causes the GlimpseDbConnection to set the InnerConnection to null. I think another call is then made to the same connection after disposal, which then causes a NullReferenceException.
The same code worked with EF 6.1.3 and Glimpse.EF6
There is a proposed workaround on the EF issue, and there is also a suggested fix for the Glimpse code.
source Error:
Source File: D:\Dev\Src\EF6_2_InitialisationError\UI.Web\UnitOfWork\DbInitialiser.cs Line: 48
Stack Trace:
The text was updated successfully, but these errors were encountered: