Exemplo n.º 1
0
 public DbAccessInformation()
 {
     this._CommandText = null;
     this._CommandType = CommandType.Text;
     this._CommandTimeout = 30;
     this._Parameters = new DbAccessParameterCollection();
 }
Exemplo n.º 2
0
 public DbAccessInformation()
 {
     this._CommandText    = null;
     this._CommandType    = CommandType.Text;
     this._CommandTimeout = 30;
     this._Parameters     = new DbAccessParameterCollection();
 }
Exemplo n.º 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;
             }
         }
     }
 }