Esempio n. 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, DockmstrBase entity)
 {
     row.SetField("coNum", entity.coNum);
     row.SetField("whNum", entity.whNum);
     row.SetField("dockId", entity.dockId);
     row.SetField("dockmstrRowID", entity.rowID.ToByteArray());
 }
Esempio n. 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromDockmstrBase(ref DataRow row, DockmstrBase entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("dock_id", entity.dockId);
     row.SetField("name", entity.name);
     row.SetField("carrier_default", entity.carrierDefault);
     row.SetField("carrier_now", entity.carrierNow);
     row.SetField("route_default", entity.routeDefault);
     row.SetField("route_now", entity.routeNow);
     row.SetField("stage", entity.stage);
     row.SetField("current_trailer_id", entity.currentTrailerId);
     row.SetField("custom_data1", entity.customData1);
     row.SetField("custom_data2", entity.customData2);
     row.SetField("custom_data3", entity.customData3);
     row.SetField("custom_data4", entity.customData4);
     row.SetField("custom_data5", entity.customData5);
     row.SetField("row_status", entity.rowStatus);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("dockmstrRowID", entity.rowID.ToByteArray());
 }