/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromKpcomponentslookupcriteria(ref DataRow row, Kpcomponentslookupcriteria entity) { row.SetField("prod", entity.prod); row.SetField("searchtype", entity.searchtype); row.SetField("verno", entity.verno); row.SetField("lkupsearchfl", entity.lkupsearchfl); row.SetField("userfield", entity.userfield); }
public static Kpcomponentslookupcriteria BuildKpcomponentslookupcriteriaFromRow(DataRow row) { Kpcomponentslookupcriteria entity = new Kpcomponentslookupcriteria(); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.searchtype = row.IsNull("searchtype") ? string.Empty : row.Field <string>("searchtype"); entity.verno = row.IsNull("verno") ? 0 : row.Field <int>("verno"); entity.lkupsearchfl = row.Field <bool>("lkupsearchfl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }