工作单元实施
可能我太n00b无法理解这一点,但我正在阅读Gabriel Schenker http://nhibernate.info/doc/patternsandpractices/nhibernate-and-the-unit-of-work-pattern.html UnitOfWork 实现,我真的无法明白这一点。
为什么UnitOfWorkImplementor.Dispose需要将dispose转发给UnitOfWorkFactory,而这又转发给UnitOfWork??? 为什么 UnitOfWorkImplementor 不能自行处置?
还有其他 UnitOfWork 实现示例吗? (请更简单的)。
谢谢!
probably I'm too n00b to understand this, but I was reading the Gabriel Schenker http://nhibernate.info/doc/patternsandpractices/nhibernate-and-the-unit-of-work-pattern.html UnitOfWork implementation and I really cannot get the point.
Why does the UnitOfWorkImplementor.Dispose need to forward the dispose to the UnitOfWorkFactory and this forwards to UnitOfWork??? Why on earth cannot UnitOfWorkImplementor Dispose itself?
Is there any other UnitOfWork implementation example around? (An easier one please).
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
静态 UnitOfWork 可能需要被告知当前的 UoW 不再可用。
It could be that the static UnitOfWork needs to be told the current UoW is no longer available.