public virtual AccountDataset.CustomersDataTable GetDataBy1(string CustomerID) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((CustomerID == null)) { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(CustomerID)); } AccountDataset.CustomersDataTable dataTable = new AccountDataset.CustomersDataTable(); this.Adapter.Fill(dataTable); return dataTable; }
public virtual AccountDataset.CustomersDataTable GetData() { this.Adapter.SelectCommand = this.CommandCollection[0]; AccountDataset.CustomersDataTable dataTable = new AccountDataset.CustomersDataTable(); this.Adapter.Fill(dataTable); return dataTable; }