When i try to get AssociationInfo for the "Some" property it shows me OnOwnerRemove = Clear, OnTargetRemove = Default. This is really wrong because, it should be OnRemoveAction.None. If I generate classes based on your metadata(don't ask why;)) then the new generated class will look like
And now when I try to remove A instance it will fail. Because DO will try to set null into "Some" and then delete it. DO4.3 RC2 Updated at 07.07.2010 9:31:43Не закрыта бага. Все еще при неуказанном OnRemoveAction показывается OnRemoveAction.Clear Not really fixed, Just tried RC5, and it still shows OnRemoveAction.Clear if OnRemoveAction is not specified Updated at 08.07.2010 5:55:18
This thread was imported from our support forum. The original discussion may contain more detailed answer. |
Hmm... This must be fixed, there is even a test for this: http://goo.gl/XgZy Actually there must be:
Can you check if this is what you expect? Hmm, if I add [Field(Nullable = false)] to that field - than it becomes Link (FieldInfo) owner: Clear |
Issue created: http://code.google.com/p/dataobjectsdot ... ail?id=676
Fixed, as well as few more bugs.
Please read http://code.google.com/p/dataobjectsdot ... ?id=676#c2 as well.