Exemple #1
0
        protected override DbCommand CreateDbCommand()
        {
            DbCommand result = new DbProxyCommand();

            result.Connection = this;
            return(result);
        }
Exemple #2
0
 internal DbProxyDataReader(DbProxyCommand command)
 {
     readResult        = false;
     haveRead          = false;
     readResultUsed    = false;
     this.command      = command;
     resultsRead       = 0;
     isClosed          = false;
     visibleFieldCount = 0;
     schemaTable       = new DataTable();
     currentIndex      = 0;
 }
Exemple #3
0
 new void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             if (schemaTable != null)
             {
                 schemaTable.Dispose();
             }
             Close();
             command = null;
         }
         disposed = true;
     }
 }
 public DbProxyParameterCollection(DbProxyCommand command)
 {
     this.command = command;
     parameters   = new ArrayList();
     indexs       = new Dictionary <string, int>();
 }