![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
- I populate [deserialize] order class from a file (order.xml)- works OK, - Serialize back to a file - works OK, Now ... - I populate another instance of order class with data from DB, - at this time both classes, deserialized and populated form DB, are identical - when I serialize DB version one field always gets omitted So, deserialized version: Order.Commission = -5.23; // Commision is of type decimal Serializes to: Order><Commission>5.25</Commission></Order But DB loaded version: Order.Commission = -5.23; // Commision is of type decimal Serializes to: Order></Order Both use the same Serialize function. What can be wrong? BTW, when I rename Commission to, say, Commission2 it works. WTF.. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
John, Here it is: .... |
|
Both procedures use the same Serialize() function and yes, when order is returned from or.getOrder(30002051) the Commission property is set to 4.55, exactly as expected, just for some reason does not get serialized. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |