public DbAccessInformation()
 {
     this._CommandText = null;
     this._CommandType = CommandType.Text;
     this._CommandTimeout = 30;
     this._Parameters = new DbAccessParameterCollection();
 }
 public DbAccessInformation()
 {
     this._CommandText    = null;
     this._CommandType    = CommandType.Text;
     this._CommandTimeout = 30;
     this._Parameters     = new DbAccessParameterCollection();
 }
Example #3
0
 public void AssignParameterValues(DbAccessParameterCollection accessParameters)
 {
     if (accessParameters != null)
     {
         foreach (DbAccessParameter parameter in accessParameters)
         {
             DbParameter dbParameter = this.DbCommand.Parameters[parameter.ParameterName];
             if (dbParameter != null)
             {
                 object value = parameter.Value;
                 if (value == null)
                 {
                     value = DBNull.Value;
                 }
                 dbParameter.Value = value;
             }
         }
     }
 }