public virtual library_dataDataSet.merclocDataTable GetData() { this.Adapter.SelectCommand = this.CommandCollection[0]; library_dataDataSet.merclocDataTable dataTable = new library_dataDataSet.merclocDataTable(); this.Adapter.Fill(dataTable); return(dataTable); }
public virtual int Fill(library_dataDataSet.merclocDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if (this.ClearBeforeFill) { dataTable.Clear(); } return(this.Adapter.Fill(dataTable)); }
public virtual library_dataDataSet.merclocDataTable GetDataBy(string locid, string stkid) { this.Adapter.SelectCommand = this.CommandCollection[1]; if (locid == null) { throw new ArgumentNullException("locid"); } this.Adapter.SelectCommand.Parameters[0].Value = locid; if (stkid == null) { throw new ArgumentNullException("stkid"); } this.Adapter.SelectCommand.Parameters[1].Value = stkid; library_dataDataSet.merclocDataTable dataTable = new library_dataDataSet.merclocDataTable(); this.Adapter.Fill(dataTable); return(dataTable); }
public virtual int FillBy(library_dataDataSet.merclocDataTable dataTable, string locid, string stkid) { this.Adapter.SelectCommand = this.CommandCollection[1]; if (locid == null) { throw new ArgumentNullException("locid"); } this.Adapter.SelectCommand.Parameters[0].Value = locid; if (stkid == null) { throw new ArgumentNullException("stkid"); } this.Adapter.SelectCommand.Parameters[1].Value = stkid; if (this.ClearBeforeFill) { dataTable.Clear(); } return(this.Adapter.Fill(dataTable)); }