Hello,
So far I've been able to fix the problems I had from migrating from 1.0.2003.1 to the 2004 version.
The last problem I got was with this line (I solved it, just wanted to share it..
:
passagers[i].ReservationDetailPassager[j].PassagerId = passagers[i].Id;
where ReservationDetailPassager reflects a table to join n:n tables Passagers and ReservationDetail. So for each entity passagers[i] of the passagers collection, I save it then I loop in its j ReservationDetailPassager entities and I used to affect to each of these the passagers[i].Id that I saved earlier. I think I used to do that because otherwise the PassagerId property of each ReservationDetailPassager[j] entity was null when I would call
passagers[i].ReservationDetailPassager[j].Save(); Both passagers[i] and passagers[i].ReservationDetailPassager[j] were added to a transaction. After upgrading to 1.0.2004.1, I found out that the line above (code) had the effect of changing the flag ParticipatesInTransaction passagers[i].ReservationDetailPassager[j] from **True ** to False, so that the call to Save would result in an SQL timeout since a transaction was open and the entity wasn't saved in the same transaction - because ParticipatesInTransaction turned out to be False. So to solve the problem I just tried to comment out the line above and it worked, the Id was also automatically fetched from the parent entity (is my assumption right?)
Now I've just stumbled over another weird problem:
cargos[index].Cargo.DestinataireNom = sDestinataire;
Even though sDestinataire is not an empty string and that it contains the right value, after the execution of this line, cargos[index].Cargo.DestinataireNom is still equal to empty string. I even checked out the _entityFields collection and even there the value is an empty string. I don't understand what can cause the propety to act as if it was read only (it's not, the flag says ReadOnly = False). Any idea is welcome