Exemplo n.º 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, PdscmBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("modifiernm", entity.modifiernm);
     row.SetField("whse", entity.whse);
     row.SetField("pdscmRowID", entity.rowID.ToByteArray());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdscmBase(ref DataRow row, PdscmBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("modifiernm", entity.modifiernm);
     row.SetField("whse", entity.whse);
     row.SetField("rankty", entity.rankty);
     row.SetField("pct1", entity.pct1);
     row.SetField("pct2", entity.pct2);
     row.SetField("pct3", entity.pct3);
     row.SetField("pct4", entity.pct4);
     row.SetField("pct5", entity.pct5);
     row.SetField("pct6", entity.pct6);
     row.SetField("pct7", entity.pct7);
     row.SetField("pct8", entity.pct8);
     row.SetField("pct9", entity.pct9);
     row.SetField("pct10", entity.pct10);
     row.SetField("pct11", entity.pct11);
     row.SetField("pct12", entity.pct12);
     row.SetField("pct13", entity.pct13);
     row.SetField("pct14", entity.pct14);
     row.SetField("pct15", entity.pct15);
     row.SetField("pct16", entity.pct16);
     row.SetField("pct17", entity.pct17);
     row.SetField("pct18", entity.pct18);
     row.SetField("pct19", entity.pct19);
     row.SetField("pct20", entity.pct20);
     row.SetField("pct21", entity.pct21);
     row.SetField("pct22", entity.pct22);
     row.SetField("pct23", entity.pct23);
     row.SetField("pct24", entity.pct24);
     row.SetField("pct25", entity.pct25);
     row.SetField("pct26", entity.pct26);
     row.SetField("nonstockpct", entity.nonstockpct);
     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("pdscmRowID", entity.rowID.ToByteArray());
 }