When Calling SetIdMember, ElementName Of Map Is Not Used

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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".

            Assignee:
            Craig Wilson
            Reporter:
            Tim Scott
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: