C# 从windows 8.1应用程序将SQLite数据库存储到本地文件系统
我制作了一个Windows8商店应用程序。我想在其中创建一个SQLite数据库,它可以存储在我的计算机上的一个文件系统中,位置像“C:/my Documents/File.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
最终目的是从外部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);