/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromVenddetailBase(ref DataRow row, VenddetailBase entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("vendor_id", entity.vendorId); row.SetField("abs_num", entity.absNum); row.SetField("vend_item", entity.vendItem); row.SetField("uom", entity.uom); row.SetField("box_qty", entity.boxQty); row.SetField("country_code", entity.countryCode); row.SetField("custom_data1", entity.customData1); row.SetField("custom_data2", entity.customData2); row.SetField("custom_data3", entity.customData3); row.SetField("custom_data4", entity.customData4); row.SetField("custom_data5", entity.customData5); row.SetField("stack_height", entity.stackHeight); row.SetField("ref_type", entity.refType); row.SetField("date_time", entity.dateTime); row.SetField("case_quantity", entity.caseQuantity); row.SetField("pallet_quantity", entity.palletQuantity); row.SetField("trans_user", entity.transUser); row.SetField("trans_date", entity.transDate); row.SetField("trans_proc", entity.transProc); row.SetField("venddetailRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, VenddetailBase entity) { row.SetField("coNum", entity.coNum); row.SetField("whNum", entity.whNum); row.SetField("vendorId", entity.vendorId); row.SetField("vendItem", entity.vendItem); row.SetField("venddetailRowID", entity.rowID.ToByteArray()); }