有人有使用 NHibernate 创建偶尔连接的浏览器应用程序的经验吗?
我们需要使基于 ASP.NET/NHibernate 浏览器的企业应用程序能够在连接到客户服务器或从客户服务器断开连接时正常运行。 有人这样做过吗? 如果是这样,你是怎么做到的? (技术、架构等)
背景:
我们开发和销售基于企业浏览器的应用程序,供建筑现场人员用来输入时间表信息。 目前,它需要连接到客户办公室的服务器,我们希望为那些没有无线互联网可用性的客户构建偶尔连接的应用程序版本。
我们的应用程序是一个使用 NHibernate 进行 O/R 映射的 ASP.NET 应用程序。 作为 Microsoft 商店,Microsoft Sync Framework 很有吸引力,但我们不知道它是否与 NHibernate “兼容”。
任何见解将不胜感激。
戴夫·T
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许你可以使用小型版本数据库来运行某种离线版本(我听说 vistadb 的优点 - http://www .vistadb.net/ 我相信它与 NHibernate 配合得很好)。 使用同步工具在重新上线时复制数据。 单击一次的启动器可以处理安装和集成。
不过,要小心涉及同步的任何事情 - 如果只是单用户时间表可能没问题 - 但如果在线-离线数据中存在任何冲突的可能性,您可能最好从不同的角度考虑问题 -回避...
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...
为什么不将其与 Google Gears 结合使用呢? 人们在离线状态下输入数据,然后在重新连接到服务器时可以同步数据。
在现代世界中,使用 HTML5 数据存储:
http://www.webreference.com/authoring/languages/html /HTML5-客户端/
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/