/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromKpqentrycriteria(ref DataRow row, Kpqentrycriteria entity) { row.SetField("whse", entity.whse); row.SetField("prod", entity.prod); row.SetField("kitverno", entity.kitverno); row.SetField("allow8791fl", entity.allow8791fl); row.SetField("userfield", entity.userfield); }
public static Kpqentrycriteria BuildKpqentrycriteriaFromRow(DataRow row) { Kpqentrycriteria entity = new Kpqentrycriteria(); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.kitverno = row.IsNull("kitverno") ? 0 : row.Field <int>("kitverno"); entity.allow8791fl = row.IsNull("allow8791fl") ? string.Empty : row.Field <string>("allow8791fl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }