Caliburn.Micro 和 ORM (NHibernate)

发布于 2024-11-28 19:44:02 字数 183 浏览 4 评论 0原文

网上是否有关于将 Caliburn.Micro 与 ORM(例如 NHibernate)一起使用的信息,最好在 WPF 下。

我想要的是有关会话处理和工作单元模式的信息。无论我走哪条路,我似乎都把自己逼到了一个角落。

当涉及多窗口应用程序以及相同类型的窗口/视图与相同类型的视图模型的单独实例并排运行时,经常会出现问题。

Are there any information around the net about using Caliburn.Micro with an ORM such as NHibernate, preferably under WPF.

What I'm after is information about session handling and unit of work pattern. Which ever route I go down I seem to paint myself into a corner.

The problems often arise when it comes to multi window applications, and the same type of window/view running side by side with separate instances of the same type of view model.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

七秒鱼° 2024-12-05 19:44:02

将任何 ORM 与 Caliburn 一起使用没有任何缺点,因为它们是解决不同问题的两种策略。作为个人考虑,两者都很棒。

There is no drawbacks in using any ORM with Caliburn since they are two strategy working to solve different problems. And as a personal consideration are both great.

与往事干杯 2024-12-05 19:44:02

下面是一个使用 Caliburn(不是 micro)、Nhibernate 和 Windsor 的 WPF 示例。情况不完全相同,但它可能提供有关如何处理会话管理的线索。

http://code.google.com/p/ unhaddins/source/browse/Examples/uNHAddIns.Examples.WPF/

Here is a WPF example that uses Caliburn (not micro), Nhibernate, and Windsor. Not exactly the same situation but it might give a clue as to how session management is being handled.

http://code.google.com/p/unhaddins/source/browse/Examples/uNHAddIns.Examples.WPF/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文