2017-06-19 151 views
0

我有一个应用程序(Xamarin.Forms跨平台),它使用SQLite本地操纵数据。我已经初始化了这样的数据值:Xamarin Sqlite本地文件路径

static UserDatabase database; 

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

这似乎工作完美,但我不知道数据库存储的确切位置。换句话说,“User.db3”存储在哪里? (哪个文件夹?)。

我想知道这一点,因为我想通过DBBrowser查看我的数据库。没有DBBrowser Coz我不知道什么表正在创建和什么在后台(否则我使用查询每个场景输出值)。

谢谢!

+0

看看ILocalFileHelper的执行情况,还是只检查GetLocalFilePath()的返回值 – Jason

回答

1

第1步:转到以下目录

C:\用户\应用程序数据\本地\ Android的\ SDK \工具\ LIB \

第2步:点击下面的应用程序monitor.exe

enter image description here

步骤3:选择模拟器

enter image description here

步骤4:点击数据文件夹,然后再次数据

enter image description here

步骤5 :查找您的应用程序(com.xxx.xxxx.xxxx)然后选择文件文件夹。然后你可以看到xxxx.sql