wp8使用现有sqlite数据库

就是把现有文件转移到隔离空间即可

代码如下

 private async void CopyDB()
        {
            StorageFile fage = await ApplicationData.Current.LocalFolder.GetFileAsync("Logos.png");
            if (!File.Exists(fage.Path)) {
                StorageFile storageFile = await Package.Current.InstalledLocation.GetFileAsync(@"AssetsLogos.png");
                var path = Windows.Storage.ApplicationData.Current.LocalFolder;
                await storageFile.CopyAsync(path);
            }           
        }

原文地址:https://www.cnblogs.com/ajun/p/3573971.html