Skip to content
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

Database is deleted after saving changes when using the Sqlite provider 'in-memory' mode #7171

Closed
arnaudauroux opened this issue Dec 1, 2016 · 3 comments

Comments

@arnaudauroux
Copy link

Steps to reproduce

The complete reproduction step solution is available here : https://github.com/arnaudauroux/dotnetcore-sqlite110-issue

The issue

The SaveChanges method deletes the database when using the 'in-memory' mode after a call to the SaveChanges method. This issue occured in version 1.1.0.

Further technical details

EF Core version: 1.1.0
EF Core Sqlite version: 1.1.0
DotNetCore SDK version: 1.0.0-preview2-1-003177
Operating system: Win10
Visual Studio version: VS 2015

@arnaudauroux arnaudauroux changed the title Database is deleted after have saved changes when using the Sqlite provider 'in-memory' mode Database is deleted after saving changes when using the Sqlite provider 'in-memory' mode Dec 1, 2016
@smitpatel
Copy link
Contributor

possible dupe of #6968

@rowanmiller
Copy link
Contributor

Closing as a dupe of #6968 (SaveChanges is closing the connection when it shouldn't be)

@arnaudauroux
Copy link
Author

Yes thanks, we have fixed the issue by opening the connection before passing it to Sqlite ;)

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants