Hi, We've found 2 problems in DO4 with Notifications for newly created Entities:
[/:m:17wp0xat] Id changes are not notified at all[/list:u:17wp0xat] My Colleague Andres Rohr already reported the second problem in a Skype chat with Alex:
Please find a test project in the Attachment to this Message Regards Paul Sinnema Diartis AG This thread was imported from our support forum. The original discussion may contain more detailed answer. |
The value of [Key] fields isn't directly assigned (note that there is even private setter) - we consider entity never exists without a key, so key is assigned during entity initialization. I.e. you simply can't see an entity w/o assigned key - @ any event you can handle, or protected method that can be overriden. Actually, we fetch all the field values from internal row-like structure: Tuple. So during initialization, [Key] field values are assigned directly to Tuple fields. That's why event for [Key] is never raised. I'm not fully sure if this must be fixed - we consider it's a natural behavior:
**> First time when the property changes
That's normal, since we replay the operations on "connected" entities. You can distinguish between these two cases using Session.IsDisconnected or Session.DisconnectedState properties. |