/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromLoadlotshistttcriteria(ref DataRow row, Loadlotshistttcriteria entity) { row.SetField("prod", entity.prod); row.SetField("whse", entity.whse); row.SetField("lotno", entity.lotno); row.SetField("userfield", entity.userfield); }
public static Loadlotshistttcriteria BuildLoadlotshistttcriteriaFromRow(DataRow row) { Loadlotshistttcriteria entity = new Loadlotshistttcriteria(); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.lotno = row.IsNull("lotno") ? string.Empty : row.Field <string>("lotno"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }