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

Improve types handling

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Linq, Serialization
    • Labels:
      None

      Description

      Suggestions

      1. Validation of full inheritance path in OfType<T> filter, to handle rare cases where documents with different/non existent full paths but same/existent leaf present:
        1. Collections with [A_nonexistent, B_nonexistent, C_existent] documents
          1. Due to corruption/leftovers
          2. Collections shared among mult. apps.
        2. Collections with [X, Y, C] [A, B, C] documents, where [X, Y, C] and [A, B, C] are in different namespaces
      1. Forbid upsert of abstract classes and interfaces
      2. Consider forbidding instantiating objects with non existent inheritance paths. For example C with _t: [A_nonexistent, B_nonexistent, C_existent] discriminator

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              boris.dogadov Boris Dogadov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: