{"action":"created","issue":{"url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/107","labels_url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/107/comments","events_url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/107/events","html_url":"https://github.com/MarimerLLC/cslaforum/issues/107","id":120099916,"number":107,"title":"How to implement containment?","user":{"login":"lmsantin","id":7717026,"avatar_url":"https://avatars.githubusercontent.com/u/7717026?v=3","gravatar_id":"","url":"https://api.github.com/users/lmsantin","html_url":"https://github.com/lmsantin","followers_url":"https://api.github.com/users/lmsantin/followers","following_url":"https://api.github.com/users/lmsantin/following{/other_user}","gists_url":"https://api.github.com/users/lmsantin/gists{/gist_id}","starred_url":"https://api.github.com/users/lmsantin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmsantin/subscriptions","organizations_url":"https://api.github.com/users/lmsantin/orgs","repos_url":"https://api.github.com/users/lmsantin/repos","events_url":"https://api.github.com/users/lmsantin/events{/privacy}","received_events_url":"https://api.github.com/users/lmsantin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-12-03T05:57:52Z","updated_at":"2015-12-05T20:42:05Z","closed_at":null,"body":"I have a class A and a class B, both inherit from BusinessBase.\r\n\r\nClass B has a Contained property of type A.\r\nClass B has another property declared as RelationshipTypes.Child and this property is an editable list.\r\n\r\nWhen I call the FieldManager.UpdateChildren(this), the dataportal tries to update the property declared as RelationshipTypes.Child and the Contained property too.\r\n\r\nWhy the dataportal tries to update the Contained property if it is not declared as RelationshipTypes.Child?\r\n\r\nWhy the Contained property is considered a child?\r\n\r\nHow can I implement containment?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/comments/162244176","html_url":"https://github.com/MarimerLLC/cslaforum/issues/107#issuecomment-162244176","issue_url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/107","id":162244176,"user":{"login":"jonnybee","id":3512406,"avatar_url":"https://avatars.githubusercontent.com/u/3512406?v=3","gravatar_id":"","url":"https://api.github.com/users/jonnybee","html_url":"https://github.com/jonnybee","followers_url":"https://api.github.com/users/jonnybee/followers","following_url":"https://api.github.com/users/jonnybee/following{/other_user}","gists_url":"https://api.github.com/users/jonnybee/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnybee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnybee/subscriptions","organizations_url":"https://api.github.com/users/jonnybee/orgs","repos_url":"https://api.github.com/users/jonnybee/repos","events_url":"https://api.github.com/users/jonnybee/events{/privacy}","received_events_url":"https://api.github.com/users/jonnybee/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T20:42:05Z","updated_at":"2015-12-05T20:42:05Z","body":"Well, it is inconsistent in the sense that RelationshipTypes.None is the actual default but RelationshipTypes.Child is never checked or used inside CSLA. \r\n\r\nSo the default is actually that an property that contains a business object (list or single) is an owning reference. \r\n\r\nI believe (IIRC) that RelationshipTypes.Child was intended to identify a child reference - but it is not used and kept for backward compatibility. \r\n\r\n"}}