-
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
DbContext is working fine in Debug mode but not in release mode ( using Microsoft.EntityFrameworkCore.Sqlite v 2.2.6 and Microsoft.NETCore.UniversalWindowsPlatform v 6.2.9) #20122
Comments
@bricelam to take a look |
Looks like you are bringing in both version 2.0.2 and 1.1.2 of SQLitePCLRaw. These two versions are incompatible. Find the dependency that is using 1.x and update (or remove) it. |
That's what I did, downgraded to version to 2.2.6, but now the problem is the DBcontext works fine in debug mode but not in release |
I wonder if this is related to #19535 |
I don't think so, my dataset doesn't have a collection. It is a very simple one. |
@RituparnaGoswamiMishra Please note that EF Core 2.2 is now out-of-support. As @bricelam said above, you should "find the dependency using 1.x and update (or remove) it.". Then if you're still seeing issues we can investigate. |
EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it. BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions. |
I am not sure if this is version issue or not but , when I try to install Microsoft.EntityFrameworkCore.Sqlite , latest verion 3.1.2, I get build error
"Severity Code Description Project File Line Suppression StateError Payload contains two or more files with the same destination path 'e_sqlite3.dll'. Source files:
C:\Users\ritup.nuget\packages\sqlitepclraw.lib.e_sqlite3\2.0.2\runtimes\win10-x86\nativeassets\uap10.0\e_sqlite3.dll
C:\Users\ritup.nuget\packages\sqlitepclraw.lib.e_sqlite3.v140\1.1.2\runtimes\win10-x86\native\e_sqlite3.dll pave.myLocation.Player
"
After initial googling, I downgraded the version to 2.2.6.
Now everything works fine in debug, but in release , the db context is not working properly for the unit tests... I have tried by creating the db file in the local folder as well as with in memory db for sqlite.
Implementing SQlite without EF should work fine, writing all the db queries and statements are not only troublesome but also error prone. does anyone has any lead on this. ?
This is how you can reproduce the issue:-
my database context
my entity
My db service that uses the db context
My test case
in debug mode everything works fine, but in release apparently the context.TestEntity is null.
this is the error I am getting
thanks in advance!!
The text was updated successfully, but these errors were encountered: