{"action":"reopened","issue":{"url":"https://api.github.com/repos/ra0o0f/arangoclient.net/issues/34","labels_url":"https://api.github.com/repos/ra0o0f/arangoclient.net/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/ra0o0f/arangoclient.net/issues/34/comments","events_url":"https://api.github.com/repos/ra0o0f/arangoclient.net/issues/34/events","html_url":"https://github.com/ra0o0f/arangoclient.net/issues/34","id":124409013,"number":34,"title":"Is [DocumentProperty(IgnoreProperty = true)] not supposed to ignore document properties?","user":{"login":"danludwig","id":1446023,"avatar_url":"https://avatars.githubusercontent.com/u/1446023?v=3","gravatar_id":"","url":"https://api.github.com/users/danludwig","html_url":"https://github.com/danludwig","followers_url":"https://api.github.com/users/danludwig/followers","following_url":"https://api.github.com/users/danludwig/following{/other_user}","gists_url":"https://api.github.com/users/danludwig/gists{/gist_id}","starred_url":"https://api.github.com/users/danludwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danludwig/subscriptions","organizations_url":"https://api.github.com/users/danludwig/orgs","repos_url":"https://api.github.com/users/danludwig/repos","events_url":"https://api.github.com/users/danludwig/events{/privacy}","received_events_url":"https://api.github.com/users/danludwig/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ra0o0f/arangoclient.net/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-30T22:37:20Z","updated_at":"2016-01-01T05:48:19Z","closed_at":null,"body":"Consider the following 4 types:\r\n\r\n    public abstract class ContactInfo {\r\n      public SomeEnum SomeEnumValue { get; set; }\r\n      [DocumentProperty(IgnoreProperty = true)]\r\n      public abstract string ContactValue { get; }\r\n    }\r\n\r\n    public class ContactEmailInfo : ContactInfo {\r\n      public string EmailAddress { get; set; }\r\n      [DocumentProperty(IgnoreProperty = true)]\r\n      public override string ContactValue => EmailAddress;\r\n    }\r\n\r\n    public class ContactPhoneInfo : ContactInfo {\r\n      public ulong PhoneNumber { get; set; }\r\n      public string Region Code { get; set; }\r\n      [DocumentProperty(IgnoreProperty = true)]\r\n      public override string ContactValue => EmailAddress;\r\n    }\r\n\r\n    public class UserDocument {\r\n      public UserDocument() {\r\n        ContactEmails = new List<ContactEmailInfo>();\r\n        ContactPhones = new List<ContactPhoneInfo>();\r\n      }\r\n      public IList<ContactEmailInfo> ContactEmails { get; }\r\n      public IList<ContactPhoneInfo> ContactPhones { get; }\r\n      [DocumentProperty(IgnoreProperty = true)]\r\n      public IReadOnlyCollection<UserContactInfo> ContactInfos =>\r\n        new ReadOnlyCollection<UserContactInfo>(ContactEmails\r\n          .Cast<UserContactInfo>().Union(ContactPhones).ToArray());\r\n    }\r\n\r\nWhen using the client to save a `UserDocument`, its `UserInfos` array is being stored in the db json document, essentially duplicating items that are already in the `UserEmails` and `UserPhones` arrays. Furthermore each array item has its `ContactValue` serialized, again duplicating data that is already stored in other differently-named properties. \r\n\r\nAm I misunderstanding the API for ignoring CLR properties when serializing to arango via this client, if such a thing is possible?\r\n"}}