NamedIdMemberConvention should do nothing if base class already has an _id

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 1.10, 2.0
    • Component/s: Serialization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Serializing the following classes fails because NamedIdMemberConvention doesn't realize that C already has an _id, and tries to map the Id in D to "_id" also, resulting in duplicate element names.

      public class C
      {
          public int _id { get; set; }
      }
      
      public class D : C
      {
          public int Id { get; set; }
      }
      

            Assignee:
            Robert Stam
            Reporter:
            Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: