This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
In a 1:1-relation, there is an Id field for the other entity, "UserId" for example. Is that updated automatically when setting the User entity? I can understand if the field isn't updated until saved to the database, just wanted to make sure. :) Thanks! |
|
|
I believe the UserId will be updated when the User is set, *provided* that the entity is part of a unit of work at that point. Also, note that with the IdentityColumn identity method, if the User is a new entity and has never been saved to the database, the ID will be a temporary placeholder until the it is saved, and will be updated again after the save happens and the database allocates the ID. (This is not an issue with other identity methods.) |
|