Using EntityFrameWorkCore and SqlLite in memory I get "no such table: ControlGroup" error

c# entity-framework-core in-memory-database sqlite

Question

My issue is that I want to do some unit tests for my application that runs certain relational-specific functionality, but I can't use the conventional.UseInMemoryDatabase(databaseName: dbContextName) I switched it to.UseSqlite("DataSource=:memory:") instead to make that right.

Now I understand:

SqliteException: SQLite Error 1: 'no such table: ControlGroup'.

How can I correct this?

1
2
4/9/2019 1:53:42 PM

Accepted Answer

ZZZ_tmp
2
4/10/2019 12:36:01 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow