/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcamuimportfilefiltered(ref DataRow row, Icamuimportfilefiltered entity) { row.SetField("processfl", entity.processfl); row.SetField("whse", entity.whse); row.SetField("prod", entity.prod); row.SetField("seqno", entity.seqno); row.SetField("origseqno", entity.origseqno); row.SetField("userfield", entity.userfield); }
public static Icamuimportfilefiltered BuildIcamuimportfilefilteredFromRow(DataRow row) { Icamuimportfilefiltered entity = new Icamuimportfilefiltered(); entity.processfl = row.Field <bool>("processfl"); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); entity.origseqno = row.IsNull("origseqno") ? 0 : row.Field <int>("origseqno"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }