C# 6 introduced getter-only auto-properties, which are a great way of conveying immutability for your classes. However, by default MongoDB ignores these properties from its class maps, as it can’t deserialise them back into a class. To automatically map read-only properties, you can use a custom convention: /// <summary> ///…