/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromLoadoeelcttresults(ref DataRow row, Loadoeelcttresults entity) { row.SetField("lineno", entity.lineno); row.SetField("intseqno", entity.intseqno); row.SetField("linetype", entity.linetype); row.SetField("seqno", entity.seqno); row.SetField("origlinetype", entity.origlinetype); row.SetField("origintseqno", entity.origintseqno); row.SetField("origseqno", entity.origseqno); row.SetField("dspllinetype", entity.dspllinetype); row.SetField("statuscd", entity.statuscd); row.SetField("descrip", entity.descrip); row.SetField("descrip1", entity.descrip1); row.SetField("linestatus", entity.linestatus); }
public static Loadoeelcttresults BuildLoadoeelcttresultsFromRow(DataRow row) { Loadoeelcttresults entity = new Loadoeelcttresults(); entity.lineno = row.IsNull("lineno") ? 0 : row.Field <int>("lineno"); entity.intseqno = row.IsNull("intseqno") ? 0 : row.Field <int>("intseqno"); entity.linetype = row.IsNull("linetype") ? string.Empty : row.Field <string>("linetype"); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); entity.origlinetype = row.IsNull("origlinetype") ? string.Empty : row.Field <string>("origlinetype"); entity.origintseqno = row.IsNull("origintseqno") ? 0 : row.Field <int>("origintseqno"); entity.origseqno = row.IsNull("origseqno") ? 0 : row.Field <int>("origseqno"); entity.dspllinetype = row.IsNull("dspllinetype") ? string.Empty : row.Field <string>("dspllinetype"); entity.statuscd = row.IsNull("statuscd") ? string.Empty : row.Field <string>("statuscd"); entity.descrip = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip"); entity.descrip1 = row.IsNull("descrip1") ? string.Empty : row.Field <string>("descrip1"); entity.linestatus = row.IsNull("linestatus") ? string.Empty : row.Field <string>("linestatus"); return(entity); }