最佳基于.NET3.5的策略,用于创建断开连接的数据库应用程序 [英] Best .NET3.5 based strategy for creating disconnected db application
问题描述
我的要求是:
我在过去几天一直在研究各种选项。最后,我正在考虑缩小到Datasets,同时将它们序列化为XML,但似乎它不是一个好主意(我以前的问题的答案建议强烈。)
I have been researching various options in last few days. At last I was thinking of narrowing to Datasets, while serializing them to XML, but it seems that it is not a good idea afterall (answers to my previous questions suggested that strongly.)
所以我的问题是,我应该采取什么方法(数据库和访问技术)?我想使用c#和一个易于使用的技术来访问我的数据库,并在一天结束时同步。
根据这个链接:http://msdn.microsoft.com/en-us/library/8fxztkff.aspx,MS建议两种不同的方法。我很惊讶看到他们在这里没有提到LINQ。
So my question now is what approach (database and the access tech.) should I take? I would like to use c# and an easy to use technology to access my database and sync it at the end of the day.
According to this link: http://msdn.microsoft.com/en-us/library/8fxztkff.aspx, MS suggests two different approaches. I am surprised to see that they have not mentioned LINQ here.
那么,你推荐什么路径?
So group, what path do you recommend?
非常感谢阅读。
推荐答案
Add - > New - > 。这应该提供您需要的所有同步(通过ADO.NET同步框架),由SQL CE默认运行(IIRC),这是(我相信)是免费的。
Add -> New -> "Local Database Cache". This should provide all the sync you need (via ADO.NET Sync Framework), running (IIRC) by SQL CE by default, which is (I believe) free.
这篇关于最佳基于.NET3.5的策略,用于创建断开连接的数据库应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!