How to access the same database file between two projects in a Visual Studio Solution?

panic mode

Joined Oct 10, 2011
4,933
why file? if you want two or more applications to access same database, that is not a problem, just make sure to pick multiuser database. the best is not to go for file based one, choose server based DB since access times are much shorter. also if needed, DB could be either local or on a different machine.
 

Thread Starter

Shafty

Joined Apr 25, 2023
327
Now only I searched about accdb and visual studio. We cannot migrate accdbs using Entity Framework Core. so now my question is: "How to use an sqlite3 database file between two projects inside a visual studio solution".
_dbContext.Database.EnsureCreated() does the Magic!
 
Top