/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPackinglistdeletepo(ref DataRow row, Packinglistdeletepo entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("rt_id", entity.rtId); row.SetField("po_num", entity.poNum); row.SetField("po_suffix", entity.poSuffix); row.SetField("packinglistdeletepouserfield", entity.packinglistdeletepouserfield); row.SetField("userfield", entity.userfield); }
public static Packinglistdeletepo BuildPackinglistdeletepoFromRow(DataRow row) { Packinglistdeletepo entity = new Packinglistdeletepo(); entity.coNum = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num"); entity.whNum = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num"); entity.rtId = row.IsNull("rt_id") ? 0 : row.Field <int>("rt_id"); entity.poNum = row.IsNull("po_num") ? string.Empty : row.Field <string>("po_num"); entity.poSuffix = row.IsNull("po_suffix") ? string.Empty : row.Field <string>("po_suffix"); entity.packinglistdeletepouserfield = row.IsNull("packinglistdeletepouserfield") ? string.Empty : row.Field <string>("packinglistdeletepouserfield"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }