Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCommstBase(ref DataRow row, CommstBase entity)
 {
     row.SetField("record_type", entity.recordType);
     row.SetField("version", entity.version);
     row.SetField("record_length", entity.recordLength);
     row.SetField("end_marker", entity.endMarker);
     row.SetField("active", entity.active);
     row.SetField("upload", entity.upload);
     row.SetField("trans_type", entity.transType);
     row.SetField("last_sent_number", entity.lastSentNumber);
     row.SetField("last_sent_time", entity.lastSentTime);
     row.SetField("last_ack_number", entity.lastAckNumber);
     row.SetField("last_ack_time", entity.lastAckTime);
     row.SetField("procedure_name", entity.procedureName);
     row.SetField("multiple", entity.multiple);
     row.SetField("trailer", entity.trailer);
     row.SetField("store_procedure", entity.storeProcedure);
     row.SetField("comments", entity.comments);
     row.SetField("custom_data1", entity.customData1);
     row.SetField("custom_data2", entity.customData2);
     row.SetField("custom_data3", entity.customData3);
     row.SetField("custom_data4", entity.customData4);
     row.SetField("custom_data5", entity.customData5);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("commstRowID", entity.rowID.ToByteArray());
 }
Example #2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, CommstBase entity)
 {
     row.SetField("recordType", entity.recordType);
     row.SetField("version", entity.version);
     row.SetField("commstRowID", entity.rowID.ToByteArray());
 }