Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCmslBase(ref DataRow row, CmslBase entity)
 {
     row.SetField("lettercd", entity.lettercd);
     row.SetField("description", entity.description);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     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("noteln17", entity.noteln17);
     row.SetField("noteln18", entity.noteln18);
     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("cmslRowID", entity.rowID.ToByteArray());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, CmslBase entity)
 {
     row.SetField("lettercd", entity.lettercd);
     row.SetField("cmslRowID", entity.rowID.ToByteArray());
 }