Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/296.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 从windows 8.1应用程序将SQLite数据库存储到本地文件系统_C#_Sqlite_Visual Studio 2013_Windows Store Apps - Fatal编程技术网

C# 从windows 8.1应用程序将SQLite数据库存储到本地文件系统

C# 从windows 8.1应用程序将SQLite数据库存储到本地文件系统,c#,sqlite,visual-studio-2013,windows-store-apps,C#,Sqlite,Visual Studio 2013,Windows Store Apps,我制作了一个Windows8商店应用程序。我想在其中创建一个SQLite数据库,它可以存储在我的计算机上的一个文件系统中,位置像“C:/my Documents/File.SQLite”。我不知道该怎么做。谁能给我一个建议吗。提前谢谢 最终目的是从外部windows服务读取数据库文件。windows服务无法读取应用的本地存储文件夹。如果有办法,也可以这样做。如果您还没有: The database will be stored in the app's local data and you ca

我制作了一个Windows8商店应用程序。我想在其中创建一个SQLite数据库,它可以存储在我的计算机上的一个文件系统中,位置像“C:/my Documents/File.SQLite”。我不知道该怎么做。谁能给我一个建议吗。提前谢谢


最终目的是从外部windows服务读取数据库文件。windows服务无法读取应用的本地存储文件夹。如果有办法,也可以这样做。

如果您还没有:
The database will be stored in the app's local data and you can update your DB from there.

Path : C:\Users\sunilkumar.s\AppData\Local\Packages\"Your App Package"\LocalState\

You can access this in c# using this code

string strPath = ApplicationData.Current.LocalFolder.Path;
string strDatabaseName = "ABCD.db";
strFinalPath = System.IO.Path.Combine(strPath, strDatabaseName);