public virtual VariablesDataset.VariablesDataTable GetDataByVariableCode(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)); } VariablesDataset.VariablesDataTable dataTable = new VariablesDataset.VariablesDataTable(); this.Adapter.Fill(dataTable); return dataTable; }
public virtual VariablesDataset.VariablesDataTable GetDataByVariableID(int variableID) { this.Adapter.SelectCommand = this.CommandCollection[2]; this.Adapter.SelectCommand.Parameters[0].Value = ((int)(variableID)); VariablesDataset.VariablesDataTable dataTable = new VariablesDataset.VariablesDataTable(); this.Adapter.Fill(dataTable); return dataTable; }
public virtual VariablesDataset.VariablesDataTable GetData() { this.Adapter.SelectCommand = this.CommandCollection[0]; VariablesDataset.VariablesDataTable dataTable = new VariablesDataset.VariablesDataTable(); this.Adapter.Fill(dataTable); return dataTable; }