我可以同步我的Windows应用程序和我的Web应用程序吗?

编程入门 行业动态 更新时间:2024-10-24 18:19:45
本文介绍了我可以同步我的Windows应用程序和我的Web应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

美好的一天,请有人帮助我! 我有一个Windows应用程序和一个具有相同数据库结构的Web应用程序,我的Windows应用程序是否可以与我的Web应用程序同步因此,当我连接到互联网时,我将能够将远程服务器上的所有数据下载到我的本地机器上,用于Windows应用程序....我正在谈论的一个非常好的例子是Microsoft Outlook .. 我的应用程序在视觉工作室10和C#.. .. 谢谢,我很感激你的美好时光.. 谢谢

Good Day, Please can some one help me out here! I have a windows application and a web application with same database structure, Is it possible for my windows application to synchronize with my web application so that when ever i am connected to the internet, I will be able to download all the data on the remote server to my local machine, for the windows application....A very good example of what i am talking about is Microsoft Outlook.. My Application is on visual studio 10 and C#.. thanks and i do appreciate your lovely time.. thanks

推荐答案

如果两个应用程序一直在线,然后你可以简单地使用相同的连接字符串到数据库。当您的Windows应用程序无法上线时会出现此问题... 您的解决方案可以让用户知道此Win应用程序仅在线运行,或者一个单独的嵌入式数据库,其结构与您的在线数据库相同,并在新内容上线时下载/上传。 Outlook通过时间戳实现这一目标,电子邮件有时间戳,因此很容易知道是的,这是一封新电子邮件,因此展望未来并下载最新内容它知道的时间戳。 If both applications are online all the time, then you could simply use the same connection string to the database. The problem will arise when your Windows application is unable to get online... Your solution can either be letting the user know this Win application only works online, or have a separate embedded db with the same structure as your online db and download/upload the new content whenever it gets online. Outlook achieves this through timestamps, emails have timestamps, so it's easy to know "Yes, this is a new email" so outlook goes ahead and downloads everything from the latest timestamp it knows.

Hi Difameg ..., 我之前在我的项目中遇到过类似的问题有2个申请。一个是Web应用程序,另一个是Windows应用程序。它们都使用相同的DB。直到这一点,一切都很好。但是后来,我的客户说在远程位置Windows应用程序不会连接到DB。然后,我们研究了一个名为Synchronization of Database的概念。这个概念运行如下: 1. Web应用程序将始终在MasterDB上运行。 2. Windows应用程序将在PeerDB上运行(同样schema作为MasterDB)。 3.最初,我们同步MasterDb和PeerDB,以确保它们具有相同的查找数据用于登录目的,其他静态数据等。 4.现在,Windows应用程序可以在其自己的PeerDB上工作,只要他们愿意。 5.要将数据恢复到MasterDB,他们将同步两个数据库。 现在,您将把所有数据都存入MasterDB,以及PeerDB进行离线工作。 请查看Microsoft Synchronization Framework 2.0v。这将解决你的大多数问题。 谢谢你, RelicV Hi Difameg..., I've had a similar issue previously in my project where we had 2 applications. One is a Web app and the other is a Windows app. Both of them use a same DB. Till that point, everything was fine. But later on, my client said that the Windows app would not be connecting to DB while at remote locations. Then, we looked into a concept called Synchronization of Database. This concept runs like this: 1. Web application will always work on MasterDB. 2. Windows application will work on PeerDB (same schema as MasterDB). 3. Initially, we synchronize both the MasterDb and PeerDB to make sure that they have same lookup data for login purpose, other static data, etc. 4. Now, Windows application would work on its own PeerDB for as long as they want to. 5. To get the data back into MasterDB, they would synchronize both the databases. Now, you'll have all the data into MasterDB, as well as PeerDB for offline working. Please do look into Microsoft Synchronization Framework 2.0v. This would solve most of your problems. Thank you, RelicV

更多推荐

我可以同步我的Windows应用程序和我的Web应用程序吗?

本文发布于:2023-11-16 22:13:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1607681.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   Windows   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!