To start a transaction the application calls begin .
应用程序调用begin开始事务。
The odd thing about the read-only flag is that you need to start a transaction in order to use it.
关于只读标志很奇怪的一点是:要使用它,必须启动一个事务。
IDS does not implicitly start a new transaction for the EXECUTE statement. So, you must start a transaction explicitly.
IDS不会隐式地为execute语句开始一个新事务。
First, if a method did not start a transaction, it has no business managing that transaction (for example, marking it for rollback).
首先,如果某个方法没有启动事务,那么它就不需要管理事务(例如,将其标记为回滚)。
With the API layer transaction strategy, it's not the end of the world if you start a transaction at the client layer during a refactoring effort.
对于api层事务策略,您在重构过程中在客户端层上开始一个事务并不会引起灾难性后果。
If you chose this approach, the calling component would need to start a transaction prior to calling methods on the EIS facade, or an exception would be raised.
如果选择这种方法,那么在调用组件时,需要在调用EIS代理的方法之前启动一个事务,否则就会抛出异常。
The CustomerSession bean should start a transaction prior to calling methods on OrderService because the transaction will encompass multiple operations on EIS1.
CustomerSessionbean应当在调用OrderService上的方法之前启动一个事务,因为要由这个事务来包装在EIS1上进行的多个操作。
As I said earlier, one of the biggest restrictions with this transaction strategy is that the client layer must be able to start a transaction and propagate it to the API layer.
如前所述,这种事务策略的最大一个限制就是,客户端层必须能够开始一个事务并将它传播给api层。
LINQ to SQL also supports explicitly setting the transaction on the context, so you could get the connection from the context, open it, start a transaction, and set it on the context.
LINQ toSQL同样支持显式设置上下文的事务,所以您可以获取上下文的数据库连接,然后打开它,开启一个事务,并在上下文中设置。
Unlike the required attribute, the MANDATORY attribute will not start a transaction if one does not exist, but rather will throw an exception indicating that a transaction is required.
与REQUIRED属性不同,MANDATORY属性将不会开始不存在的事务,而是抛出一个异常,指示需要事务。
Start a transaction, get the trade order, then commit the transaction.
启动一个事务,获取交易订单,然后提交事务。
Start a transaction, get the trade order, then commit the transaction.
启动一个事务,获取交易订单,然后提交事务。
应用推荐