在该层将使用asp.NET的TransactionScope你实现交易? [英] In which layer would you implement transactions using asp.NET TransactionScope?

查看:109
本文介绍了在该层将使用asp.NET的TransactionScope你实现交易?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个服务,业务和数据访问层。其中层应使用asp.NET的TransactionScope我实现交易?此外,是嵌套事务一件好事,因为我曾与的问题?

I have a service, business and data access layer. In which layer should I implement transactions using asp.NET transactionscope? Also, is nesting Transactions a good thing because I had problems with that?

推荐答案

交易范围是不特定asp.net .NET的一部分

Transaction Scope is part of .net not specific to asp.net

我们将使在业务层含有交易的范围。服务层更多的是一种门面。如果有什么需要一个交易应该是一个单一的经营范围内。

We would place the tansaction scope in the business layer. The service layer is more of a facade. If something requires a transaction it should be within a single business operation.

这篇关于在该层将使用asp.NET的TransactionScope你实现交易?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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