public SqlLoggedSqlDataReader(
     SqlLoggedSqlConnection connection,
     IDbCommand command)
 {
     _connection = connection;
     _command    = command;
 }
Ejemplo n.º 2
0
        public SafeLoggedSqlConnection(SqlLog.SqlLog sqlLog, int applicationId, string userName, string hostName, string connectionString,
                                       ISqlLoggedSqlCommandFilter filter, CancellationToken cancellationToken)
        {
            var connection = new SqlLoggedSqlConnection.SqlLoggedSqlConnection(sqlLog, applicationId, userName, hostName, connectionString, filter);

            _cancellationToken = cancellationToken;

            Initialize(connection, this);
        }
Ejemplo n.º 3
0
        public SqlLoggedSqlCommand(
            SqlLoggedSqlConnection connection,
            IDbCommand command)
        {
            Assert.IsNotNull(connection);
            Assert.IsNotNull(command);

            _connection = connection;
            _command    = command;
        }