Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromArbsidBase(ref DataRow row, ArbsidBase entity)
 {
     row.SetField("imptype", entity.imptype);
     row.SetField("recno", entity.recno);
     row.SetField("reckey", entity.reckey);
     row.SetField("startpos1", entity.startpos1);
     row.SetField("startpos2", entity.startpos2);
     row.SetField("startpos3", entity.startpos3);
     row.SetField("startpos4", entity.startpos4);
     row.SetField("startpos5", entity.startpos5);
     row.SetField("startpos6", entity.startpos6);
     row.SetField("startpos7", entity.startpos7);
     row.SetField("startpos8", entity.startpos8);
     row.SetField("startpos9", entity.startpos9);
     row.SetField("startpos10", entity.startpos10);
     row.SetField("startpos11", entity.startpos11);
     row.SetField("startpos12", entity.startpos12);
     row.SetField("startpos13", entity.startpos13);
     row.SetField("startpos14", entity.startpos14);
     row.SetField("startpos15", entity.startpos15);
     row.SetField("startpos16", entity.startpos16);
     row.SetField("startpos17", entity.startpos17);
     row.SetField("startpos18", entity.startpos18);
     row.SetField("startpos19", entity.startpos19);
     row.SetField("startpos20", entity.startpos20);
     row.SetField("endpos1", entity.endpos1);
     row.SetField("endpos2", entity.endpos2);
     row.SetField("endpos3", entity.endpos3);
     row.SetField("endpos4", entity.endpos4);
     row.SetField("endpos5", entity.endpos5);
     row.SetField("endpos6", entity.endpos6);
     row.SetField("endpos7", entity.endpos7);
     row.SetField("endpos8", entity.endpos8);
     row.SetField("endpos9", entity.endpos9);
     row.SetField("endpos10", entity.endpos10);
     row.SetField("endpos11", entity.endpos11);
     row.SetField("endpos12", entity.endpos12);
     row.SetField("endpos13", entity.endpos13);
     row.SetField("endpos14", entity.endpos14);
     row.SetField("endpos15", entity.endpos15);
     row.SetField("endpos16", entity.endpos16);
     row.SetField("endpos17", entity.endpos17);
     row.SetField("endpos18", entity.endpos18);
     row.SetField("endpos19", entity.endpos19);
     row.SetField("endpos20", entity.endpos20);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("transproc", entity.transproc);
     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("arbsidRowID", 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, ArbsidBase entity)
 {
     row.SetField("imptype", entity.imptype);
     row.SetField("recno", entity.recno);
     row.SetField("arbsidRowID", entity.rowID.ToByteArray());
 }