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

FilterDefinition don't respect GuidRepresentation

    XMLWordPrintable

Details

    • Bug
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • 2.11.0
    • None
    • API
    • None
    • dotnet core 3.1 on Linux and Windows
    • Fully Compatible

    Description

      I replace BsonDefaults.GuidRepresentation = GuidRepresentation.Standard; by BsonSerializer.RegisterSerializer(new GuidSerializer(GuidRepresentation.Standard)); to set all my app use Standard representation, 

       

      But if I do Builders<MyEntity>.Filter.Eq("_id", myGuid);, the filter is translated with CSUUID(...) in place of UUID(...).

       

      In more largest case, how I can specify Guid representation with this type of filter ? 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              herve.tinant@gmail.com Hervé TINANT
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: