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

FilterDefinition don't respect GuidRepresentation

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • 2.11.0
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated: