C#-TransactionScope

using System.Transactions;
TransactionOptions op = new TransactionOptions() { IsolationLevel = IsolationLevel.ReadCommitted };
            using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, op))
            {
                using (CCEntities dm = new CCEntities(AppConfig.GetCreditCheckConnStr()))
                {
                    dm.PCR_IdentifiableInformation.AddObject(info);

                    dm.SaveChanges();
                }
                scope.Complete();
            }

 

C#-TransactionScope

上一篇:window10下,命令行与端口


下一篇:jenkins-windows-无法调起chrome