Beispiel #1
0
        IDbCommand PrepareCommand(string sql, object[] objects)
        {
            IDbCommand command = this.DatabaseConnection.CreateCommand();

            command.CommandTimeout = _configuration.CommandTimeout;
            command.CommandText    = String.Format(sql, objects);
            _transactionProvider.Enlist(command);
            _log.Info(command.CommandText);
            return(command);
        }