C# Xamarin Sqlite本地文件路径
我有一个应用程序(Xamarin.Forms cross-platform),它使用C# Xamarin Sqlite本地文件路径,c#,database,sqlite,xamarin,local-database,C#,Database,Sqlite,Xamarin,Local Database,我有一个应用程序(Xamarin.Forms cross-platform),它使用SQLite在本地操作数据。我已初始化数据值,如下所示: static UserDatabase database; database = new UserDatabase(DependencyService.Get<ILocalFileHelper>().GetLocalFilePath("User.db3")); //sv67219.Diabetes_App.dbo")); 静态用户数据库;
SQLite
在本地操作数据。我已初始化数据值,如下所示:
static UserDatabase database;
database = new UserDatabase(DependencyService.Get<ILocalFileHelper>().GetLocalFilePath("User.db3")); //sv67219.Diabetes_App.dbo"));
静态用户数据库;
database=newuserdatabase(DependencyService.Get().GetLocalFilePath(“User.db3”))//sv67219.糖尿病(附录dbo);
这似乎工作得很好,但我不知道数据库到底存储在哪里。换句话说,“User.db3”存储在哪里?(哪个文件夹?)
我想知道这一点,因为我想通过DBBrowser.Coz查看我的数据库。没有DBBrowser,我不知道正在创建哪些表以及在后台发生了什么(否则,我会使用查询每个场景来输出值)
谢谢!步骤1:转到以下目录 C:\Users…\AppData\Local\Android\sdk\tools\lib\ 步骤2:单击以下应用程序monitor.exe 步骤3:选择仿真器 步骤4:单击数据文件夹,然后再次单击数据文件夹
第5步:找到你的应用程序(com.xxx.xxxx.xxxx),然后选择文件文件夹。然后你可以看到xxxx.sql查看ILocalFileHelper的实现,或者只检查GetLocalFilePath()的返回值