Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSasjBase(ref DataRow row, SasjBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("nopostings", entity.nopostings);
     row.SetField("totcr", entity.totcr);
     row.SetField("totdr", entity.totdr);
     row.SetField("tothash", entity.tothash);
     row.SetField("opendt", entity.opendt);
     row.SetField("opentm", entity.opentm);
     row.SetField("closedt", entity.closedt);
     row.SetField("closetm", entity.closetm);
     row.SetField("operinit", entity.operinit);
     row.SetField("oper2", entity.oper2);
     row.SetField("transtm", entity.transtm);
     row.SetField("transdt", entity.transdt);
     row.SetField("ourproc", entity.ourproc);
     row.SetField("printfl", entity.printfl);
     row.SetField("closefl", entity.closefl);
     row.SetField("frxinterface", entity.frxinterface);
     row.SetField("proofdr", entity.proofdr);
     row.SetField("currproc", entity.currproc);
     row.SetField("proofcr", entity.proofcr);
     row.SetField("period", entity.period);
     row.SetField("intellexdt", entity.intellexdt);
     row.SetField("postdt", entity.postdt);
     row.SetField("batchnm", entity.batchnm);
     row.SetField("user1", entity.user1);
     row.SetField("balancefl", entity.balancefl);
     row.SetField("user2", entity.user2);
     row.SetField("smmergedfl", entity.smmergedfl);
     row.SetField("user3", entity.user3);
     row.SetField("perfisc", entity.perfisc);
     row.SetField("user4", entity.user4);
     row.SetField("batchfl", entity.batchfl);
     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("transproc", entity.transproc);
     row.SetField("transdttmz", entity.transdttmz);
     row.SetField("sasjRowID", entity.rowID.ToByteArray());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, SasjBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("sasjRowID", entity.rowID.ToByteArray());
 }