摘要: 本文主要内容:1.WCF中运用事务的基本设置;2.代码示例;一、WCF运用事务的基本设置包括三项:a.绑定中添加事务流 transactionFlow=true;b.操作契约中添加[TransactionFlow(TransactionFlowOption....)]属性;c.服务类中添加事务环境[OperationBehavior(TransactionAutoComlete=true,TransactionScopeRequired=true)];d.如果服务类的实例不是 InstanceContextMode.PerCall,则需要在[ServiceBehavior(ReleaseSer 阅读全文
posted @ 2011-09-29 10:02 走过留痕 阅读(3159) 评论(3) 推荐(1) 编辑