예제 #1
0
 // BeginTransaction
 public void BeginTransaction(IsolationLevel isolationLevel)
 {
     try
     {
         _serverProcess.BeginTransaction(isolationLevel);
     }
     catch (Exception E)
     {
         throw WrapException(E);
     }
 }
예제 #2
0
        private void RegisterCoreSystemObjects()
        {
            // Creates and registers the core system objects required to compile and execute any D4 statements
            // This will only be called if this is a repository, or if this is a first-time startup for a new server

            _systemProcess.BeginTransaction(IsolationLevel.Isolated);
            try
            {
                InternalRegisterCoreSystemObjects();

                _systemProcess.CommitTransaction();
            }
            catch
            {
                _systemProcess.RollbackTransaction();
                throw;
            }
        }