Table of Contents

Enum GuidStorageFormat

Namespace
Tharga.MongoDB
Assembly
Tharga.MongoDB.dll

Controls how Guid values are stored in MongoDB.

public enum GuidStorageFormat

Fields

CSharpLegacy = 1

Legacy C# driver binary format (BSON subtype 3, mixed-endian byte order). Use only when reading or writing existing data stored by the old C# MongoDB driver.

Standard = 0

RFC 4122 binary UUID (BSON subtype 4). Cross-driver and cross-language compatible. Recommended for all new projects.

String = 2

Human-readable string format: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx". Useful when documents must be readable in Compass or bridged to string-based systems.