Does Anyone Have Experience Creating an Occasionally-Connected Browser App With NHibernate?

拟墨画扇 提交于 2019-12-13 12:33:43

问题


We need to make our enterprise ASP.NET/NHibernate browser-based application able to function when connected to or disconnected from the customer's server. Has anyone done this? If so, how did you do it? (Technology, architecture, etc.)

Background:

We develop and sell an enterprise browser-based application used by construction field personnel to enter timesheet information. Currently, it requires a connection to the server back in the customer's office and we'd like to build an occasionally-connected version of the application for those clients without wireless Internet availability.

Our application is an ASP.NET application using NHibernate for O/R mapping. Being a Microsoft shop, the Microsoft Sync Framework is attractive, but we don't know whether it "plays well" with NHibernate.

Any insight would be greatly appreciated.

Dave T


回答1:


Maybe you could operate some kind of offline version using a small version database (I hear good things about vistadb - http://www.vistadb.net/ which I believe does play well with NHibernate). With a syncing tool to copy data in when they are back on line. A click-once launcher could handle installation and integration.

Want to be careful with anything involving syncing though - if it is just single user timesheets that might be OK - but if there are any chances of conflicts in the online-offline data you might be better considering the problem from a different angle for pain-avoidance...




回答2:


Why not couple it with Google Gears? People put their data in while offline, and then they can sync it when they reconnect to the server.

In a modern world, using the HTML5 data store: http://www.webreference.com/authoring/languages/html/HTML5-Client-Side/



来源:https://stackoverflow.com/questions/134245/does-anyone-have-experience-creating-an-occasionally-connected-browser-app-with

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!