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

Add IHierarchicalDiscriminatorConvention and IScalarDiscriminatorConvention interfaces

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • 3.0.0
    • Affects Version/s: None
    • Component/s: LINQ3, Serialization
    • None
    • Dotnet Drivers

      Adding these interfaces will allow the LINQ provider to create correct queries involving the `OfType` method or the `is` operator.

      A scalar discriminator stores a single scalar value in the `_t` field.

      A hierarchical discriminator stores an array of values representing the class hierarchy of the stored value relative to the root class.

      The two types of discriminators require different MQL to be generated by the LINQ provider.

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

              Created:
              Updated: