与 vb.net 和 php 数据同步
我有一个 Windows 应用程序和一个 php Web 应用程序(并非始终连接到互联网),最终数据添加/删除/更新可以在任一位置发生。因此必须每天或手动同步数据。
我最后有一个小的sqllite数据库文件(小于500K),并且php web应用程序使用Mysql,结构保持不变。
我想在我的 Windows 应用程序中有一个更新功能,它将我的 sqllite 数据库文件直接发送到我的网络服务器,然后 1. Php应该从sqllite数据库文件中读取值,从上传的文件中将一些值插入到mysql中 2. Php应该从mysql数据库文件中读取值并将它们插入到sqllite数据库文件中
,最后将它们发送回我的Windows客户端电脑。我想使用.net 2.0。
任何人有完成上述任务的想法或使同步更容易的建议都会对我有很大帮助。 请告诉我应该如何进行架构或设计来实现这一目标
I have a windows application and a php web application(not connected to internet all times), eventually data add/remove/update can happen at either places. So data has to be synchronized every day or manually.
I have a small sqllite database file (less than 500K) in my end, and the php web app uses Mysql, the structures remain the same.
I would like to have a update function in my windows app, which sends my sqllite database file directly to my webserver and then
1. Php should read values from the sqllite database files insert some values into mysql from the uploaded file
2. Php should read values from the mysql database files and insert them to sqllite database file
and finally send them back to my windows client pc. I would like to use .net 2.0.
Anyone has an idea to get the above done or a suggestion to make the sync easier will help me a lot.
Please Give me light on how the architecture or design should be done to achieve this
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果更改数据库系统负担得起,我建议您查看 db4o。它提供与其对应的复制系统同步功能。它是 100% 托管的,并且还可以在 Windows Mobile 设备上运行。
此外,它比您能想象到的任何 RDMS 更简单、更干净、更快,并且如果您需要(如 sqlite),也无需服务器。
If changing the database system is affordable I recommend you to take a look at db4o. It offers out of the box syncronization with their replication system counterpart. It's 100% managed and it also runs on Windows Mobile devices.
Furthermore its easier, cleaner and faster than whatever RDMS you could imagine and server-less if you need to (like sqlite).