Interface IGuidRepresentationConfigurable
Provides an interface for configuring the Guid representation in BSON serializers.
Inherited Members
Namespace: Primitively.MongoDB.Bson.Serialization
Assembly: Primitively.MongoDB.Bson.dll
Syntax
public interface IGuidRepresentationConfigurable : IHasGuidRepresentationSerializer
Methods
WithGuidRepresentation(GuidRepresentation)
Configures the BSON serializer with the specified Guid representation.
Declaration
IBsonSerializer WithGuidRepresentation(GuidRepresentation representation)
Parameters
Type | Name | Description |
---|---|---|
GuidRepresentation | representation | The Guid representation to use. |
Returns
Type | Description |
---|---|
IBsonSerializer | A BSON serializer configured with the specified Guid representation. |