English 中文(简体)
Windows Phone Series: Local SQL Server Mobile/Compact information
原标题:

I know that this is jumping the gun slightly as it is early days but has anyone got any information on how we can build apps that take advantage of a basic local SQL database like you used(!) to in Windows CE/mobile 6.x? I can t find any info on the intertubes so maybe it hasn t been announced yet??

最佳回答

Is ErikEJ hints at, sql is on the device and is used by the built-in applications and OS ... however it s not exposed. If you watch one of Charlie Kindel s talks at MIX10 and keep watching for the questions at the end he mentions this. He hints that it s something that they want to look at exposing in the future, but they didn t have enough time to do so in this release.

Anyways, unless you live/work in a place with spotty coverage, I think that the device will have connectivity more often than not. Because the user will either be in wifi range, or on the 3g network. I know that it s very rare that my iPhone doesn t have data connectivity. So you can probably rely on having access to a cloud service somewhere.

问题回答

No - as Windows Phone 7 Series is "consumer oriented" there will be no SQL Server Compact Edition.

If you agree with me and some developers you can try posting in SQL Compact Edition in WP7? and request support for it. However, I don t think they will change their opinion...

There seem to be some people trying to migrate SQLlite to WinPhone7Series and someone posted a link to Siaquodb (never heard about it before) which seems to work but is not free.

Even if you don t have access to the cloud there are many ways to store data on the device. Unless you re doing an enterprise level app (and why would you on a device targetted at consumers, not enterprise users) you could take your pick on solutions. LINQ to XML is a good possibility.

Look for an upcoming release of the Sync Framework to support offline data caching for Silverlight applications on Windows Phone 7 and Silverlight on the desktop/browser. While this isn t SQL CE, it does offer a technology to support synchronization of data between SQL Server in a data center and data on a Windows Phone 7 device. As Liam Cavanagh mentions in this blog post before TechEd:

I have a TechEd session this week where I will be demonstrating all of this as well as how we will be extending the capabilities of the sync framework for creating offline applications, specifically allowing Silverlight, Windows Phone 7 and even non-MSFT platforms to be used for the clients.

Link





相关问题
SQLServerCE Problem with parameterized queries from .NET

I am pulling the hair out of my head trying to figure this one out. I can t make Parameterized queries to work in VB.Net, when I am using parameters. From what I have found, using a parameter in a ...

Entity Framework with File-Based Database

I am in the process of developing a desktop application that needs a database. The application is currently targeted to SQL Express 2005 and works wonderfully. However, I m not crazy about having ...

热门标签