Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCctransBase(ref DataRow row, CctransBase entity)
 {
     row.SetField("recordid", entity.recordid);
     row.SetField("reqstream", entity.reqstream);
     row.SetField("ansstream", entity.ansstream);
     row.SetField("statusty", entity.statusty);
     row.SetField("filename", entity.filename);
     row.SetField("enterdt", entity.enterdt);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("transproc", entity.transproc);
     row.SetField("cctransRowID", entity.rowID.ToByteArray());
 }
Пример #2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, CctransBase entity)
 {
     row.SetField("recordid", entity.recordid);
     row.SetField("cctransRowID", entity.rowID.ToByteArray());
 }