Enum GuidStorageFormat
Controls how Guid values are stored in MongoDB.
public enum GuidStorageFormat
Fields
CSharpLegacy = 1Legacy 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 = 0RFC 4122 binary UUID (BSON subtype 4). Cross-driver and cross-language compatible. Recommended for all new projects.
String = 2Human-readable string format: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx". Useful when documents must be readable in Compass or bridged to string-based systems.