RhinoCommons的UnitOfWork问题与ASP.Net MVC [英] RhinoCommons UnitOfWork Question with ASP.Net MVC

查看:91
本文介绍了RhinoCommons的UnitOfWork问题与ASP.Net MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与RhinoCommons和NHibernate玩弄,我有一个关于的UnitOfWork模式的问题。

I'm playing around with RhinoCommons and NHibernate and I had a question about the UnitOfWork pattern.

很抱歉,如果这是一个问题的n00b

Sorry if this is a n00b question.

如果可以的UnitOfWork在非常高的水平(即控制器)开始了吗?或者说,控制器调用成服务模块在说什么?

Should the UnitOfWork be started at the very highest level (ie the controller)? Or say in the service module that the controller is calling down into?

推荐答案

使用UnitOfWorkApplication。 下面是如何

Use UnitOfWorkApplication. Here's how.

这篇关于RhinoCommons的UnitOfWork问题与ASP.Net MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆