Beispiel #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, NotescmBase entity)
 {
     row.SetField("notestype", entity.notestype);
     row.SetField("primarykey", entity.primarykey);
     row.SetField("pageno", entity.pageno);
     row.SetField("secondarykey", entity.secondarykey);
     row.SetField("notescmRowID", entity.rowID.ToByteArray());
 }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromNotescmBase(ref DataRow row, NotescmBase entity)
 {
     row.SetField("notestype", entity.notestype);
     row.SetField("primarykey", entity.primarykey);
     row.SetField("printfl", entity.printfl);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("requirefl", entity.requirefl);
     row.SetField("noteln1", entity.noteln1);
     row.SetField("noteln2", entity.noteln2);
     row.SetField("noteln3", entity.noteln3);
     row.SetField("noteln4", entity.noteln4);
     row.SetField("noteln5", entity.noteln5);
     row.SetField("noteln6", entity.noteln6);
     row.SetField("noteln7", entity.noteln7);
     row.SetField("noteln8", entity.noteln8);
     row.SetField("noteln9", entity.noteln9);
     row.SetField("noteln10", entity.noteln10);
     row.SetField("noteln11", entity.noteln11);
     row.SetField("noteln12", entity.noteln12);
     row.SetField("noteln13", entity.noteln13);
     row.SetField("noteln14", entity.noteln14);
     row.SetField("noteln15", entity.noteln15);
     row.SetField("noteln16", entity.noteln16);
     row.SetField("pageno", entity.pageno);
     row.SetField("secondarykey", entity.secondarykey);
     row.SetField("securefl", entity.securefl);
     row.SetField("origpageno", entity.origpageno);
     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("notescmRowID", entity.rowID.ToByteArray());
 }