How to access Sqlite database file in Xamarin UWP -


i have xamarin project. in uwp project's root, stored sqlite file has initial tables app needs. set 'build action' 'content'. examples found file in 'applicationdata.current.localfolder.path', when run app, there nothing in folder. gets created in debug folder. should use different path debug , release? how storage work? apps being sandboxed in uwp?

all examples found file in 'applicationdata.current.localfolder.path', when run app, there nothing in folder

yes, sqlite file have set content uwp app, need copy localfolder programmatically in first run. using storagefile.copyasync() method copy file specific location

please see sunteen's answer in question

another location application data locations can read/write. can copy database file install directory application data directory using. following code example connecting database file in local folder......


Comments