-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Environment:
*Location*: http://docs.mongodb.org/ecosystem/tutorial/serialize-documents-with-the-csharp-driver/
*User-Agent*: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36
*Referrer*: https://www.google.com/
*Screen Resolution*: 1920 x 1080
*repo*: docs-ecosystem
*source*: tutorial/serialize-documents-with-the-csharp-driver
*Location*: http://docs.mongodb.org/ecosystem/tutorial/serialize-documents-with-the-csharp-driver/ *User-Agent*: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36 *Referrer*: https://www.google.com/ *Screen Resolution*: 1920 x 1080 *repo*: docs-ecosystem *source*: tutorial/serialize-documents-with-the-csharp-driver
The example:
cm.IdMemberMap.SetRepresentation(BsonType.ObjectId);
Only works with driver versions prior to 2.0. Not sure how to do this with 2.0.