Пример #1
0
        public DbCommandProxy(IDbCommand command, ProxyContext ctx)
        {
            if (command == null) throw new ArgumentNullException("command");
            if (ctx == null) throw new ArgumentNullException("ctx");

            this.command = command;
            context = ctx;
        }
        public DbConnectionProxy(IDbConnection connection, ProxyContext ctx)
        {
            if (connection == null) throw new ArgumentNullException("connection");
            if (ctx == null) throw new ArgumentNullException("ctx");

            this.connection = connection;
            context = ctx;
        }
        public DbTransactionProxy(IDbTransaction transaction, ProxyContext ctx)
        {
            if (transaction == null) throw new ArgumentNullException("transaction");
            if (ctx == null) throw new ArgumentNullException("ctx");

            this.transaction = transaction;
            context = ctx;
        }
Пример #4
0
        public DbConnectionProxy(IDbConnection connection, ProxyContext ctx)
        {
            if (connection == null)
            {
                throw new ArgumentNullException("connection");
            }
            if (ctx == null)
            {
                throw new ArgumentNullException("ctx");
            }

            this.connection = connection;
            context         = ctx;
        }
Пример #5
0
        public DbCommandProxy(IDbCommand command, ProxyContext ctx)
        {
            if (command == null)
            {
                throw new ArgumentNullException("command");
            }
            if (ctx == null)
            {
                throw new ArgumentNullException("ctx");
            }

            this.command = command;
            context      = ctx;
        }
        public DbTransactionProxy(System.Data.Common.DbTransaction transaction, ProxyContext ctx)
        {
            if (transaction == null)
            {
                throw new ArgumentNullException("transaction");
            }
            if (ctx == null)
            {
                throw new ArgumentNullException("ctx");
            }

            Transaction = transaction;
            context     = ctx;
        }
Пример #7
0
        public DbTransactionProxy(IDbTransaction transaction, ProxyContext ctx)
        {
            if (transaction == null)
            {
                throw new ArgumentNullException("transaction");
            }
            if (ctx == null)
            {
                throw new ArgumentNullException("ctx");
            }

            this.transaction = transaction;
            context          = ctx;
        }
Пример #8
0
        public DbCommandProxy(DbCommand command, ProxyContext ctx, DbConnectionProxy dbConnectionProxy)
        {
            if (command == null)
            {
                throw new ArgumentNullException("command");
            }
            if (ctx == null)
            {
                throw new ArgumentNullException("ctx");
            }

            this.command      = command;
            context           = ctx;
            DbConnectionProxy = dbConnectionProxy;
        }
Пример #9
0
 public DbConnectionProxy(DbConnection connection, ProxyContext ctx)
 {
     this.connection = connection ?? throw new ArgumentNullException(nameof(connection));
     context         = ctx ?? throw new ArgumentNullException(nameof(ctx));
 }
Пример #10
0
 public DbTransactionProxy(System.Data.Common.DbTransaction transaction, ProxyContext ctx)
 {
     Transaction = transaction ?? throw new ArgumentNullException(nameof(transaction));
     context     = ctx ?? throw new ArgumentNullException(nameof(ctx));
 }
Пример #11
0
 public DbCommandProxy(DbCommand command, ProxyContext ctx)
 {
     this.command = command ?? throw new ArgumentNullException(nameof(command));
     context      = ctx ?? throw new ArgumentNullException(nameof(ctx));
 }