将数据从 Windows Phone (Silverlight) 迁移到通用应用 [英] Migrate data from Windows Phone (Silverlight) to a Universal App

查看:23
本文介绍了将数据从 Windows Phone (Silverlight) 迁移到通用应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个现成的 Windows Phone 应用程序,该应用程序已经在使用中.我想转换到通用应用程序,但我希望能够将现有本地 SQL 数据库中的数据转换为通用应用程序可以使用的数据.

I've got an existing Windows Phone app that is out in the wild, and being used. I'd like to transition to a Universal App, but I'd like to be able to transition data from the existing local SQL database to something that can then be used by the Universal App.

我目前的想法是推出对 Silverlight 版本的更新,将要迁移的数据作为众所周知的文件名保存在独立存储中 - 这又映射到另一个上的 Local 文件夹侧,然后将其移出 Roaming 文件夹或根据需要重命名.这种方法看起来确实有点缺陷,因为它要求最终用户在我发布通用版本之前首先选择并运行该更新.

My current idea is to push out an update to the Silverlight version that saves the data to be migrated as a well known filename in Isolated Storage - which in turn maps to the Local folder on the other side, and then move that out to the Roaming folder or rename as applicable. This approach does seem a little flawed that it requires end users to first pick up and run that update prior to my releasing the universal version.

那么,有没有办法将迁移应用程序包含在 Windows Phone 软件包中,以便一次性处理迁移?

So, is there a way to include a migration app as part of the Windows Phone package that could handle the migration in one go?

推荐答案

这里没有很多选择.您将要创建的通用应用程序与您的 Silverlight 应用程序完全不同.事实是,这些框架有意使您无法在应用程序之间聊天.

You don't have a lot of options here. The Universal App you are going to create is a totally different app than your Silverlight app. Fact is, the frameworks intentionally make it so you can't chat between apps.

您可能考虑的一种策略是让您的 Silverlight 应用程序能够将其数据传输到云(或用户的 OneDrive),然后让您的通用应用程序包含从云中提取数据并将其导入的功能.

One strategy you might consider is to give your Silverlight app the ability to transfer its data to the cloud (or the user's OneDrive) and then have your universal app contain the capability to pull down the data from the cloud and import it.

我说了这么多,没有本地能力做到这一点.我知道这不是一个很好的答案,我不想成为不得不说出来的人.但是,现在你知道了.

I say all that to say, there is no native ability to do it. I know that's not a great answer and I hate to be the one to have to say it. But, now you know.

祝你好运.

这篇关于将数据从 Windows Phone (Silverlight) 迁移到通用应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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