Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-464

When Calling SetIdMember, ElementName Of Map Is Not Used

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      I have like this:

      BsonClassMap.RegisterClassMap<LoadPlan>(x => {
      x.AutoMap();
      var idMap = x.GetMemberMap(c => c.Id).SetElementName("Id");
      x.SetIdMember(idMap);
      }):

      At the end of the closure x.IdMemberMap.ElementName is "_id". I expect it to be "Id".

      Attachments

        Activity

          People

            craig.wilson@mongodb.com Craig Wilson
            timscott Tim Scott
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: