IdGenerator not working for inserts after using oftype on collection

XMLWordPrintableJSON

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

      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 Stam
            Reporter:
            boppbo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: