|
http://www.mongodb.org/display/DOCS/CSharp+Driver+Serialization+Tutorial#CSharpDriverSerializationTutorial-SelectinganIdGeneratortouseforanIdfieldorproperty
In the section "Selecting an IdGenerator to use for an Id field or property" there is a code sample that is missing a character. Without it, the code does not compile. Here is the original code:
BsonSerializer.RegisterIdGenerator(
typeof(Guid),
ComGuidGenerator.Instance
);
Here is the corrected code:
BsonSerializer.RegisterIdGenerator(
typeof(Guid),
CombGuidGenerator.Instance
);
Notice on the 3rd line, the "b" in "Comb" is missing: Com[b]GuidGenerator.
|