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

FilterDefinition don't respect GuidRepresentation

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.11.0
    • Component/s: API
    • Labels:
      None
    • Environment:
      dotnet core 3.1 on Linux and Windows
    • Fully Compatible

      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 ? 

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

              Created:
              Updated: