c# - How can I load an already existing database into a UWP using entity framework or any other framework -
i trying build uwp app loads existing database entity framework. way can create database if create different database each app installation want apps share same database. whenever run 'update-database' in package manager, error;
update-database should not used universal windows apps. instead, call dbcontext.database.migrate() @ runtime.
its little tricky yes sir can that.
there called publisher cache folder. gives option create shared folder can accessed single publisher across multiple apps. trick here first create publisher cache folder app. create database in folder , once done, can access folder apps , have single database apps.
good thing if have multiple apps uses folder, unless last 1 uninstalled, not deleted. if user uninstalls 1 of app , installs again, voila, old data stored in database there.
you can read documentation here
good luck
Comments
Post a Comment