WindowsPhone 应用程序的数据库

发布于 2024-12-02 01:07:32 字数 120 浏览 0 评论 0原文

我是 Windows Phone 应用程序开发新手。我花了几天时间来了解 XAML 和其他库。我从不需要任何数据库的简单应用程序开始。可以使用什么样的数据库以及如何将其与应用程序连接。

或者 XML 处理会更好

I am new to Windows Phone Application Development . I spent a couple of days to understand the XAML and other Libraries . I started with simple application which doesnt require any DataBase .What kind of DataBase can be used and how to connect it with the application .

or XML Processing will better

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你列表最软的妹 2024-12-09 01:07:32

您可以使用这两种方法,即将信息存储在手机独立存储中的本地数据库中,或者读取并保存 XML 文件。

MSDN

使用 Windows Phone OS 7.1,您可以将关系数据存储在本地
驻留在应用程序的独立存储中的数据库
容器。 Windows Phone 应用程序对所有数据库使用 LINQ to SQL
运营; LINQ to SQL用于定义数据库模式,选择
数据,并将更改保存到驻留在的底层数据库文件中
隔离存储。

以下是如何:创建基本本地数据库应用程序对于 Windows Phone

如果您的要求只是存储数据并且不需要非常复杂的数据库设计/架构,或者仅仅是因为您正在 Windows Phone OS 7.0 上进行开发。您可以使用 XML,如下所示:

使用 XmlSerializer 读取并保存 XML 文件

You can use both methods i.e. store information on a local database in your phone's isolated storage or read and save XML files.

MSDN:

With Windows Phone OS 7.1, you can store relational data in a local
database that resides in your application’s isolated storage
container. Windows Phone applications use LINQ to SQL for all database
operations; LINQ to SQL is used to define the database schema, select
data, and save changes to the underlying database file residing in
isolated storage.

Here is How to: Create a Basic Local Database Application for Windows Phone

If your requirement is simply to store data and a very complicated database design/schema is not required or simply because you are developing on Windows Phone OS 7.0. You can use XML as can be found here:

Read and Save XML files using XmlSerializer

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文