Xamarin Sqlite本地文件路径 [英] Xamarin Sqlite Local file path

查看:298
本文介绍了Xamarin Sqlite本地文件路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用SQLite在本地处理数据的应用程序(Xamarin.Forms跨平台).我已经像这样初始化了数据值:

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"));

这似乎工作得很好,但是我不知道数据库到底存储在哪里.换句话说,"User.db3" 存储在哪里? (哪个文件夹?).

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?).

我想知道这一点,因为我想通过DBBrowser查看数据库.没有DBBrowser的Coz,我不知道正在创建什么表以及后台发生了什么(否则我会针对每种情况使用查询来输出值).

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).

谢谢!

推荐答案

步骤1:转到以下目录

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

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

步骤2:单击以下应用程序 monitor.exe

第3步:选择仿真器

步骤4:单击 data 文件夹,然后再次单击 data 文件夹

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

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

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

这篇关于Xamarin Sqlite本地文件路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆