/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, SwscpBase entity) { row.SetField("cono", entity.cono); row.SetField("probfailcd", entity.probfailcd); row.SetField("vendno", entity.vendno); row.SetField("swscpRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSwscpBase(ref DataRow row, SwscpBase entity) { row.SetField("cono", entity.cono); row.SetField("operinit", entity.operinit); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("user1", entity.user1); row.SetField("user2", entity.user2); row.SetField("user3", entity.user3); row.SetField("user4", entity.user4); row.SetField("user5", entity.user5); row.SetField("user6", entity.user6); row.SetField("user7", entity.user7); row.SetField("user8", entity.user8); row.SetField("user9", entity.user9); row.SetField("probfailcd", entity.probfailcd); row.SetField("class", entity.@class); row.SetField("probfailtxt", entity.probfailtxt); row.SetField("failtxtreqfl", entity.failtxtreqfl); row.SetField("failtype", entity.failtype); row.SetField("severitycd", entity.severitycd); row.SetField("vendno", entity.vendno); row.SetField("mfgrepairhrs", entity.mfgrepairhrs); row.SetField("transproc", entity.transproc); row.SetField("swscpRowID", entity.rowID.ToByteArray()); }