entity framework - Where to put SQLite database in UWP app -
current entity framework core documentation gives example using sqlite in windows 10 / uwp app. example given declares db location optionsbuilder.usesqlite("filename=blogging.db");
path equivalent windows.storage.applicationdata.current.localfolder.path
puts sqlite database in <packagefolder>\localstate
.
we exploring using uwp/sqlite business application stores business transactions in sqlite db. folder name localstate
suggests me place store state information, not long term storage of business transactions.
there folder <packagefolder>\appdata
. more appropriate location our db? if so, how accessed in uwp app? or <packagefolder>\localstate
after correct place put db used long term storage of business transactions?
documentation right. path database (windows.storage.applicationdata.current.localfolder.path) correct. data exist long app installed on device.
please see below msdn article , important it:
"local data, exists long app created remains installed"
and 1 more:
"local can contain both files (localfolder) , settings (localsettings) , should used information of user value , can’t recreated or downloaded"
applicationdata.current.localfolder used store information.
https://blogs.windows.com/buildingapps/2016/05/10/getting-started-storing-app-data-locally/#_local
Comments
Post a Comment