public virtual Purchase.ItemMasterDataTable SelectItemDetails() { this.Adapter.SelectCommand = this.CommandCollection[4]; Purchase.ItemMasterDataTable dataTable = new Purchase.ItemMasterDataTable(); this.Adapter.Fill(dataTable); return dataTable; }
public virtual Purchase.ItemMasterDataTable GetItemDetailsByItemId(global::System.Nullable<global::System.Guid> ItemID) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((ItemID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((System.Guid)(ItemID.Value)); } else { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } Purchase.ItemMasterDataTable dataTable = new Purchase.ItemMasterDataTable(); this.Adapter.Fill(dataTable); return dataTable; }