-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
SaveChanges closes connection opened by user using EF API #6968
Comments
Possibly due to #6335--we might be looking for the database in a different location. |
lol |
In the wrong memory location?? 😆 |
Does it make a difference if you open the If so, it might be whatever the opposite of a connection leak is. (connection evaporation?) |
Hi @bricelam, Yes, opening
fixed the problem, i.e.
... and removing the |
@bricelam Seems like this could be a breaking change? |
Yes; re-opening. We need to understand why we're closing the connection in this case now. |
|
Hi, I was expecting this bug to be fixed in release 1.1.1 but it doesn't seem to be fixed. Can you clarify:
Thanks. |
This bug is marked as fixed in the 2.0.0 release. You can try it out using the nightly builds |
Removing milestone to reconsider for 1.1.2. |
Discussed in triage and we are going to port this to 1.1.2, so it will ship with the next patch assuming this is approved. |
@ajcvickers - Patch-proposed label? |
This patch fix is approved. Please follow the normal code review / pull request process and make sure you make the change in the correct branch. |
Preview builds of this patch fix should be available on the following feeds:
If you have a chance, please try out these preview builds and let us know if you have any feedback! |
I have recently encountered the same problem after upgrading to V 2.0 and all my integration tests are now marked failed !! |
@AhmedElbatt This issue was fixed before 2.0, so the behavior you are seeing may be due to a different reason. Please file a new issue including a full code listing or project that reproduces what you are seeing. |
I am using Sqlite in-memory for unit testing. I have upgraded from v1.0.1 to 1.1.0-preview1-final and I now get the error
SQLite Error 1: 'no such table: xxx
.Steps to reproduce
SQLite Error 1: 'no such table: xxx
. on the unit test line:The SqlLite code is
The SqliteInMemory class contains
The issue
I get an exception
SQLite Error 1: 'no such table: xxx
. on the unit test line:Further technical details
EF Core version: 1.1.0-preview1-final
Operating system: Windows 10
Visual Studio version: Microsoft Visual Studio Professional 2015
Version 14.0.25425.01 Update 3
Microsoft .NET Framework
Version 4.6.01586
Other details about my project setup: I have a DataLayer containing the classes and application DbContext. The tests are in a top-level
test
directory using XUnitThe text was updated successfully, but these errors were encountered: