CommitTransaction() 공개 메소드

public CommitTransaction ( ) : void
리턴 void
예제 #1
0
 public void MoveWorkItem(WorkItem workItem, WorkStep toStep)
 {
     using (WorkflowRepository.BeginTransaction())
     {
         Move(workItem, toStep);
         WorkflowRepository.CommitTransaction();
     }
 }
 public void CreateWorkItem(WorkItem newWorkItem)
 {
     using (WorkflowRepository.BeginTransaction())
     {
         Create(newWorkItem);
         WorkflowRepository.CommitTransaction();
     }
 }
예제 #3
0
        public void DeleteWorkItem(string id)
        {
            using (WorkflowRepository.BeginTransaction())
            {
                var workItem = WorkflowRepository.GetWorkItem(id);

                ThrowInvalidOperationExceptionIfParentIsParallelLocked(workItem);

                DeleteWorkItemRecursively(workItem);

                WorkflowRepository.CommitTransaction();
            }
        }