menu

arrow_back Which GuidRepresentation should I write?

by
1 vote
I use guids in my queries and everything works. But when you build it, you get vornings
'BsonValue.implicit operator BsonValue(Guid)' is obsolete: 'Use the BsonBinaryData constructor instead and specify a Guid representation.'

Which GuidRepresentation should I write? There are five of them. If the base specifies "3", then it must be JavaLegacy?
Or what's the right way?

1 Answer

by
 
Best answer
0 votes
If it says "3" in the base, then it must be JavaLegacy?

I have found by experience that yes.