public virtual IDbCommand CreateCommand(SqlCreateCommandOptions options)
        {
            var retval = this.DbConnection.CreateCommand();

            retval.Transaction    = this.dbTransaction;
            retval.CommandTimeout = (int)this.SqlDatabaseContext.CommandTimeout.TotalSeconds;

            return(retval);
        }
Beispiel #2
0
        public override IDbCommand CreateCommand(SqlCreateCommandOptions options)
        {
            var retval = base.CreateCommand(options).Unwrap <PgSqlCommand>();

            if ((options & SqlCreateCommandOptions.UnpreparedExecute) != 0)
            {
                retval.UnpreparedExecute = true;
            }

            return(retval);
        }
		public override IDbCommand CreateCommand(SqlCreateCommandOptions options)
		{
			var retval = (PgSqlCommand)base.CreateCommand(options);

			if ((options & SqlCreateCommandOptions.UnpreparedExecute) != 0)
			{
				retval.UnpreparedExecute = true;	
			}
			
			return retval;
		}
        public virtual IDbCommand CreateCommand(SqlCreateCommandOptions options)
        {
            var retval = this.DbConnection.CreateCommand();

            retval.Transaction = this.dbTransaction;

            if (this.SqlDatabaseContext.CommandTimeout != null)
            {
                retval.CommandTimeout = (int)this.SqlDatabaseContext.CommandTimeout.Value.TotalMilliseconds;
            }

            return(retval);
        }
        public virtual IDbCommand CreateCommand(SqlCreateCommandOptions options)
        {
            var retval = this.DbConnection.CreateCommand();

            retval.Transaction = this.dbTransaction;

            if (this.SqlDatabaseContext.CommandTimeout != null)
            {
                retval.CommandTimeout = (int)this.SqlDatabaseContext.CommandTimeout.Value.TotalMilliseconds;
            }

            return retval;
        }
		public virtual IDbCommand CreateCommand(SqlCreateCommandOptions options)
		{
			var retval = this.DbConnection.CreateCommand();

			 retval.Transaction = this.dbTransaction;

			if (this.SqlDatabaseContext.CommandTimeout != null)
			{
				retval.CommandTimeout = (int)this.SqlDatabaseContext.CommandTimeout.Value.TotalMilliseconds;
			}

			if (this.emulateMultipleActiveResultSets)
			{
				retval = new MarsDbCommand(this, retval);
			}

			return retval;
		}
        public virtual IDbCommand CreateCommand(SqlCreateCommandOptions options)
        {
            var retval = this.DbConnection.CreateCommand();

            retval.Transaction = this.dbTransaction;
            retval.CommandTimeout = (int)this.SqlDatabaseContext.CommandTimeout.TotalSeconds;

            return retval;
        }