/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromCartonSizeBase(ref DataRow row, CartonSizeBase entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("box_id", entity.boxId); row.SetField("carrier_id", entity.carrierId); row.SetField("length", entity.length); row.SetField("height", entity.height); row.SetField("width", entity.width); row.SetField("cube", entity.cube); row.SetField("weight", entity.weight); row.SetField("preferred", entity.preferred); row.SetField("size_factor", entity.sizeFactor); 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("oversized", entity.oversized); row.SetField("dim_weight", entity.dimWeight); row.SetField("description", entity.description); row.SetField("package_code", entity.packageCode); row.SetField("row_status", entity.rowStatus); row.SetField("trans_user", entity.transUser); row.SetField("trans_date", entity.transDate); row.SetField("trans_proc", entity.transProc); row.SetField("carton_sizeRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, CartonSizeBase entity) { row.SetField("coNum", entity.coNum); row.SetField("whNum", entity.whNum); row.SetField("boxId", entity.boxId); row.SetField("cube", entity.cube); row.SetField("carton_sizeRowID", entity.rowID.ToByteArray()); }