public virtual WizLogisticsDataSet.WarehousesDataTable GetData(int?UserID) { this.Adapter.SelectCommand = this.CommandCollection[0]; if (!UserID.HasValue) { this.Adapter.SelectCommand.Parameters[1].Value = (object)DBNull.Value; } else { this.Adapter.SelectCommand.Parameters[1].Value = (object)UserID.Value; } WizLogisticsDataSet.WarehousesDataTable warehousesDataTable = new WizLogisticsDataSet.WarehousesDataTable(); this.Adapter.Fill((DataTable)warehousesDataTable); return(warehousesDataTable); }
public virtual int Fill(WizLogisticsDataSet.WarehousesDataTable dataTable, int?UserID) { this.Adapter.SelectCommand = this.CommandCollection[0]; if (!UserID.HasValue) { this.Adapter.SelectCommand.Parameters[1].Value = (object)DBNull.Value; } else { this.Adapter.SelectCommand.Parameters[1].Value = (object)UserID.Value; } if (this.ClearBeforeFill) { dataTable.Clear(); } return(this.Adapter.Fill((DataTable)dataTable)); }