[英]best EDB for windows mobile 6.5 C# application
我想在C#中為現有的Windows移動應用程序創建EDB。 我發現了一些解決方案,例如:
在DbfDotNet上,我找到了一個有關該項目中問題的協調員職位。 (http://dbfdotnet.codeplex.com/discussions/283054)
.NET和SQL Anywhere 10
來自MSDN的EDB http://msdn.microsoft.com/zh-cn/library/aa912256-但它在C ++中,我不知道如何在c#中使用它
SQL Server CE-但“最新版本是支持.NET Framework 4.0的SQL Server Compact 4.0 [1],並且在此版本中不再支持Windows Mobile。”
請您給我建議並分享您的經驗嗎? 我會很感激。
我曾經嘗試過沿着這條路線走,但是我並沒有找到一個干的解決方案。
因此,我開始了一個項目,但是放棄了,而是要求我的設備直接與SQL Server通信。
如果您不希望直接與服務器通信,則您的數據庫之一(設備上的本地數據庫或主服務器上的中央數據庫)將需要一個字段來表示某種形式的日期戳,而您的設備將需要跟蹤此日期戳。
DateTime dateStamp; // on Windows Mobile
private void MockUp() {
ReadDataFromServer();
dateStamp = ReadDateFromServer();
DoStuffInYourProgram();
UpdateAnythingNewerThan(dateStamp);
}
private void ReadDataFromServer() {
// read data from your central server
// and store that data into a DataSet or DataTable
}
private DateTime ReadDateFromServer() {
// this would be better in the ReadDataFromServer() method,
// but it is shown here for clarity
}
private void DoStuffInYourProgram() {
// This isn't a real routine, but rather what you are going
// to have your device doing
}
private void UpdateAnythingNewerThan(DateTime value) {
// read records from your server that are newer than the value
// passed in, then update those values with the new data your
// device has collected.
}
我希望我可以不那么模糊,但這應該可以使您大致了解。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.