wp数据库方案

本文讨论了WP7开发环境下,面对缺乏内置数据库支持的情况,如何选择合适的开源小型数据库系统,包括SqliteClientforWindowsPhone、Sterling、db4o和WindowsPhone7Database。分析了各系统的特性和适用场景,提供了选择建议。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

----------->转帖:


<div class="brief bgF8F8F8" style="">
<h1 style="padding-top: 12px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #000000; background-color: transparent; height: 45px; font-size: 22px; line-height: 42px; text-align: center; border-bottom-color: #d8d9d9; border-bottom-width: 1px; border-bottom-style: solid; margin: 0px;">WP7开发中的数据库系统选择</h1>
<div class="msg" style="color: #696969; line-height: 36px; text-align: center;">
<div>2011-05-12 13:03 朱先忠 ITPUB?<span class="f12-a"><a style="color: #004276; text-decoration: none;" href="http://database.51cto.com/art/201105/261268.htm#commment" target="_self">我要评论(<span id="pinglun_1">0</span>)</a></span>?字号:<span class="f14-b" style="font-family: arial; font-weight: bold; font-size: 14px;"><a style="color: #004276; text-decoration: none;" href="http://database.51cto.com/art/201105/261268.htm" target="_self">T</a></span>?|?<span class="f16-b" style="font-family: arial; font-weight: bold; font-size: 16px;"><a style="color: #004276; text-decoration: none;" href="http://database.51cto.com/art/201105/261268.htm" target="_self">T</a></span>

<div class="fav" style="width: 49px; height: 38px; padding-top: 4px; padding-right: 0px; padding-bottom: 0px; padding-left: 8px;"><a style="color: #004276; text-decoration: none;" title="一键收藏,随时查看,分享好友!" href="http://database.51cto.com/art/201105/261268.htm" target="_self"><img style="" src="http://images.51cto.com/images/art/newart1012/images/Fav.gif" border="0" alt="一键收藏,随时查看,分享好友!"></a>

<div class="brieftext" style="background-color: #ffffff; line-height: 26px; padding-top: 8px; padding-right: 12px; padding-bottom: 8px; padding-left: 12px; border: 1px dashed #73a0cf;">

<p class="ad" style="background-color: transparent; text-align: right; padding: 0px;">AD:


<div class="content bgF8F8F8 f14" style="">
<div id="content">

<p style="margin-top: 10px; margin-bottom: 10px; background-color: transparent; text-indent: 28px; padding: 0px;">Windows Phone 7开发已经越来越热门,但遗憾的是,目前的WP7版本并未提供直接的嵌入式数据库系统支持。不过,通过许多开源项目,你完全可以找到相当不错的替代方案。近段时间,我先后分析与研究了Sqlite Client for Windows Phone,Sterling,db4o和Windows Phone 7 Database四款开源小型数据库系统,得到如下粗略结论。不足处还希望同志们原谅。

<p style="margin-top: 10px; margin-bottom: 10px; background-color: transparent; text-indent: 28px; padding: 0px;">这个项目最初来源于Sqlite,它已经比较成熟,已应用于多种类型的嵌入式手机系统开发,以后有很短一段时间出现了一个C# Sqlite,但是犹如昙花一现,如今已经被作者更名为Sqlite Client for Windows Phone,并发布到CodePlex上。

<p style="margin-top: 10px; margin-bottom: 10px; background-color: transparent; text-indent: 28px; padding: 0px;">1. Sqlite Client for Windows Phone基于C# Sqlite,极大地简化了数据库操作。对于许多熟悉传统型关系型数据库系统开发的人来说,你可以很快上手。众多的SQL操作,......总之,让你感觉到非常亲切。此系统的大小500KB左右,属于嵌入式中的中型尺寸,OK。

<p style="margin-top: 10px; margin-bottom: 10px; background-color: transparent; text-indent: 28px; padding: 0px;">还有许多,总之,Sqlite Client for Windows Phone还可能会成为你从事WP7开发的第一或第二个选择。

<p style="margin-top: 10px; margin-bottom: 10px; background-color: transparent; text-indent: 28px; padding: 0px;">Sterling虽然也是一个新的项目,但是一出世就注定不凡。它基于WP7独立存储并使用目前业界最新的面向对象数据库设计方案,已经提供了较全面的数据库管理方案。

<p style="margin-top: 10px; margin-bottom: 10px; background-color: transparent; text-indent: 28px; padding: 0px;"><strong style="font-weight: bold; text-align: center;">Windows Phone 7 Database</strong>

<p style="margin-top: 10px; margin-bottom: 10px; background-color: transparent; text-indent: 28px; padding: 0px;"><strong style="font-weight: bold; text-align: center;">db4o</strong>

<p style="margin-top: 10px; margin-bottom: 10px; background-color: transparent; text-indent: 28px; padding: 0px;">注意:db4o也是一个OO数据库架构,其帮助资源相当丰富。已经在其他嵌入式系统中得到较普遍的应用。
以上意见仅供参考。至今对于我来说,要还深入地学习和研究Sqlite Client for Windows Phone和Sterling。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值