Ejemplo n.º 1
0
 public virtual nwindDataSet.CustomerReportsDataTable GetData()
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     nwindDataSet.CustomerReportsDataTable dataTable = new nwindDataSet.CustomerReportsDataTable();
     this.Adapter.Fill(dataTable);
     return(dataTable);
 }
Ejemplo n.º 2
0
        public virtual int Fill(nwindDataSet.CustomerReportsDataTable dataTable)
        {
            this.Adapter.SelectCommand = this.CommandCollection[0];
            if ((this.ClearBeforeFill == true))
            {
                dataTable.Clear();
            }
            int returnValue = this.Adapter.Fill(dataTable);

            return(returnValue);
        }