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

IdGenerator not working for inserts after using oftype on collection

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.9.3
    • Affects Version/s: 2.8.1
    • Component/s: Serialization
    • Labels:
      None
    • Environment:
      Windows 10 1809, Azure CosmosDB Emulator 2.1.3
      Reproduced with both dotnet core 2.2 / 3.0 Preview 5

      Id generator not working when using oftype on collection to insert document. See attached example. It will insert Guid.Empty. After commenting out oftype (line 14) it works.

       

      Is there a known workaround?

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            boppbo boppbo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: