Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromConvertBase(ref DataRow row, ConvertBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("oper2", entity.oper2);
     row.SetField("reportnm", entity.reportnm);
     row.SetField("c2", entity.c2);
     row.SetField("c4", entity.c4);
     row.SetField("i7", entity.i7);
     row.SetField("i2", entity.i2);
     row.SetField("c1", entity.c1);
     row.SetField("dt", entity.dt);
     row.SetField("dt-2", entity.dt2);
     row.SetField("c13", entity.c13);
     row.SetField("c15", entity.c15);
     row.SetField("c4-2", entity.c42);
     row.SetField("c2-2", entity.c22);
     row.SetField("de9d2s", entity.de9d2s);
     row.SetField("c2-3", entity.c23);
     row.SetField("de9d2s-2", entity.de9d2s2);
     row.SetField("c6", entity.c6);
     row.SetField("l", entity.l);
     row.SetField("c24", entity.c24);
     row.SetField("c24-2", entity.c242);
     row.SetField("de12d0", entity.de12d0);
     row.SetField("de12d5", entity.de12d5);
     row.SetField("i4", entity.i4);
     row.SetField("i3", entity.i3);
     row.SetField("de2d3", entity.de2d3);
     row.SetField("c24-3", entity.c243);
     row.SetField("c20", entity.c20);
     row.SetField("rid", entity.rid);
     row.SetField("c20-2", entity.c202);
     row.SetField("dt-3", entity.dt3);
     row.SetField("dt-4", entity.dt4);
     row.SetField("de9d2s-3", entity.de9d2s3);
     row.SetField("de2d3-2", entity.de2d32);
     row.SetField("de2d3-3", entity.de2d33);
     row.SetField("de2d3-4", entity.de2d34);
     row.SetField("de2d3-5", entity.de2d35);
     row.SetField("de12d5-2", entity.de12d52);
     row.SetField("de12d5-3", entity.de12d53);
     row.SetField("de12d5-4", entity.de12d54);
     row.SetField("faxfl", entity.faxfl);
     row.SetField("outputty", entity.outputty);
     row.SetField("c12", entity.c12);
     row.SetField("convertRowID", entity.rowID.ToByteArray());
 }
Beispiel #2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, ConvertBase entity)
 {
     row.SetField("convertRowID", entity.rowID.ToByteArray());
 }