コード例 #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, SabsBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("batchnm", entity.batchnm);
     row.SetField("sabsRowID", entity.rowID.ToByteArray());
     row.SetField("rowpointer", entity.rowpointer);
 }
コード例 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSabsBase(ref DataRow row, SabsBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("batchnm", entity.batchnm);
     row.SetField("modulenm", entity.modulenm);
     row.SetField("freqtype", entity.freqtype);
     row.SetField("descrip", entity.descrip);
     row.SetField("securinit", entity.securinit);
     row.SetField("proofdr", entity.proofdr);
     row.SetField("proofcr", entity.proofcr);
     row.SetField("createdt", entity.createdt);
     row.SetField("createinit", entity.createinit);
     row.SetField("lastmtdt", entity.lastmtdt);
     row.SetField("lastmtinit", entity.lastmtinit);
     row.SetField("lastupdt", entity.lastupdt);
     row.SetField("lastupinit", entity.lastupinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("inuseby", entity.inuseby);
     row.SetField("totdr", entity.totdr);
     row.SetField("totcr", entity.totcr);
     row.SetField("nopostings", entity.nopostings);
     row.SetField("statustype", entity.statustype);
     row.SetField("jrnlno", entity.jrnlno);
     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("transproc", entity.transproc);
     row.SetField("groupseqno", entity.groupseqno);
     row.SetField("sequencedt", entity.sequencedt);
     row.SetField("rowpointer", entity.rowpointer);
     row.SetField("transdttmz", entity.transdttmz);
     row.SetField("sabsRowID", entity.rowID.ToByteArray());
 }