public virtual DocumentsUsersDataSet.positionDataTable GetDataByID(int id) { this.Adapter.SelectCommand = this.CommandCollection[1]; this.Adapter.SelectCommand.Parameters[0].Value = ((int)(id)); DocumentsUsersDataSet.positionDataTable dataTable = new DocumentsUsersDataSet.positionDataTable(); this.Adapter.Fill(dataTable); return dataTable; }
public virtual DocumentsUsersDataSet.positionDataTable GetData() { this.Adapter.SelectCommand = this.CommandCollection[0]; DocumentsUsersDataSet.positionDataTable dataTable = new DocumentsUsersDataSet.positionDataTable(); this.Adapter.Fill(dataTable); return dataTable; }