public OrmLiteVistaDbCommand(OrmLiteVistaDbConnection connectionWrapper, IDbCommand vistaDbCommand)
        {
            if (connectionWrapper == null)
                throw new ArgumentNullException("connectionWrapper");

            if (vistaDbCommand == null)
                throw new ArgumentNullException("vistaDbCommand");

            this.connectionWrapper = connectionWrapper;

            this.VistaDbCommand = vistaDbCommand;
            this.Parameters = new OrmLiteVistaDbParameterCollection(vistaDbCommand.Parameters);
        }
        public OrmLiteVistaDbTransaction(OrmLiteVistaDbConnection connectionWrapper, IDbTransaction transaction)
        {
            if (connectionWrapper == null)
                throw new ArgumentNullException("connectionWrapper");

            if (transaction == null)
                throw new ArgumentNullException("transaction");

            finalized = disposed = false;

            this.Connection = connectionWrapper;
            this.VistaDbTransaction = transaction;
        }
예제 #3
0
        public OrmLiteVistaDbCommand(OrmLiteVistaDbConnection connectionWrapper, IDbCommand vistaDbCommand)
        {
            if (connectionWrapper == null)
            {
                throw new ArgumentNullException("connectionWrapper");
            }

            if (vistaDbCommand == null)
            {
                throw new ArgumentNullException("vistaDbCommand");
            }

            _connectionWrapper = connectionWrapper;

            this.VistaDbCommand = vistaDbCommand;
        }
예제 #4
0
        public OrmLiteVistaDbTransaction(OrmLiteVistaDbConnection connectionWrapper, IDbTransaction transaction)
        {
            if (connectionWrapper == null)
            {
                throw new ArgumentNullException("connectionWrapper");
            }

            if (transaction == null)
            {
                throw new ArgumentNullException("transaction");
            }

            _finalized = _disposed = false;

            this.Connection         = connectionWrapper;
            this.VistaDbTransaction = transaction;
        }
예제 #5
0
        public OrmLiteVistaDbCommand(OrmLiteVistaDbConnection connectionWrapper, IDbCommand vistaDbCommand)
        {
            if (connectionWrapper == null)
            {
                throw new ArgumentNullException("connectionWrapper");
            }

            if (vistaDbCommand == null)
            {
                throw new ArgumentNullException("vistaDbCommand");
            }

            this.connectionWrapper = connectionWrapper;

            this.VistaDbCommand = vistaDbCommand;
            this.Parameters     = new OrmLiteVistaDbParameterCollection(vistaDbCommand.Parameters);
        }