Xamarin Sqlite Local file path

帅比萌擦擦* 提交于 2020-01-02 21:58:49

问题


I have an app (Xamarin.Forms cross platform) that uses SQLite to manipulate data locally. I have initialized the data values like this:

static UserDatabase database;

database = new UserDatabase(DependencyService.Get<ILocalFileHelper>().GetLocalFilePath("User.db3")); //sv67219.Diabetes_App.dbo"));

This seems to work perfectly, but i dont know where exactly is the database stored. In other words, where is "User.db3" stored? (Which folder?).

I want to know this because i want to view my database via DBBrowser. Coz without DBBrowser i have no idea what tables are being created and whats going on in the background (otherwise i use querying for each scenario to output values).

Thanks!


回答1:


Step 1: Go to following directory

C:\Users...\AppData\Local\Android\sdk\tools\lib\

Step 2: click on the following application monitor.exe

Step 3: select the emulator

Step 4: Click on data folder and then again data folder

Step 5: Find your app (com.xxx.xxxx.xxxx) and then select files folder. Then you can see xxxx.sql



来源:https://stackoverflow.com/questions/44638086/xamarin-sqlite-local-file-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!