public IDbConnection CreateConnection()
        {
            var innerConnection = _innerDriver.CreateConnection();
            if (innerConnection is GlimpseProfileDbConnection)
                return innerConnection;

            var connection = new GlimpseProfileDbConnection(innerConnection as DbConnection, null, _stats, Guid.NewGuid());
            return connection;
        }
        public GlimpseProfileDbTransaction(DbTransaction transaction, ProviderStats stats, GlimpseProfileDbConnection connection)
        {
            InnerTransaction = transaction;
            InnerConnection = connection;
            Stats = stats;
            TransactionId = Guid.NewGuid();

            Stats.TransactionBegan(connection.ConnectionId, TransactionId, transaction.IsolationLevel);
        }
        public GlimpseProfileDbTransaction(DbTransaction transaction, ProviderStats stats, GlimpseProfileDbConnection connection)
        {
            InnerTransaction = transaction;
            InnerConnection  = connection;
            Stats            = stats;
            TransactionId    = Guid.NewGuid();

            Stats.TransactionBegan(connection.ConnectionId, TransactionId, transaction.IsolationLevel);
        }
Esempio n. 4
0
 public GlimpseProfileDbCommand(DbCommand innerCommand, ProviderStats stats, GlimpseProfileDbConnection connection)
     : this(innerCommand, stats)
 {
     InnerConnection = connection;
 }
Esempio n. 5
0
 public GlimpseProfileDbCommand(DbCommand innerCommand, ProviderStats stats, GlimpseProfileDbConnection connection) : this(innerCommand, stats)
 {
     InnerConnection = connection;
 }