public virtual int Fill(VariablesDataset.CategoriesDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillByVariableID(VariablesDataset.CategoriesDataTable dataTable, int variableID) {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     this.Adapter.SelectCommand.Parameters[0].Value = ((int)(variableID));
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillByVariableCode(VariablesDataset.VariablesDataTable dataTable, string variableCode) {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     if ((variableCode == null)) {
         throw new global::System.ArgumentNullException("variableCode");
     }
     else {
         this.Adapter.SelectCommand.Parameters[0].Value = ((string)(variableCode));
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }