public override void Commit()
 {
     using (IDbCommand command = connection.CreateCommand())
     {
         command.CommandText = "COMMIT";
         command.ExecuteNonQuery();
     }
 }
コード例 #2
0
 public override void Commit()
 {
     logger.Debug("Commit transaction.");
     using (IDbCommand command = connection.CreateCommand())
     {
         command.CommandText = "COMMIT";
         command.ExecuteNonQuery();
     }
 }
        public SnowflakeDbTransaction(IsolationLevel isolationLevel, SnowflakeDbConnection connection)
        {
            if (isolationLevel != IsolationLevel.ReadCommitted)
            {
                throw new SnowflakeDbException(SFError.UNSUPPORTED_FEATURE);
            }

            this.isolationLevel = IsolationLevel;
            this.connection     = connection;

            using (IDbCommand command = connection.CreateCommand())
            {
                command.CommandText = "BEGIN";
                command.ExecuteNonQuery();
            }
        }