[DOCS-3250] Comment on: "mongodb-ecosystem/tutorial/serialize-documents-with-the-csharp-driver.txt" Created: 23/Apr/14  Updated: 08/Dec/16  Resolved: 24/Apr/14

Status: Closed
Project: Documentation
Component/s: ecosystem
Affects Version/s: None
Fix Version/s: v1.3.4

Type: Improvement Priority: Minor - P4
Reporter: Docs Collector User (Inactive) Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

syntax error in example

Location: http://docs.mongodb.org/ecosystem/tutorial/serialize-documents-with-the-csharp-driver/
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Referrer: http://docs.mongodb.org/ecosystem/tutorial/getting-started-with-csharp-driver/
Screen Resolution: 1366 x 768
repo: docs-ecosystem
source: tutorial/serialize-documents-with-the-csharp-driver


Participants:
Days since reply: 9 years, 42 weeks, 6 days ago

 Description   

hello,[syntax error in example:<MyClass)]

If you want to control the creation of the class map you can provide your own initialization code in the form of a lambda expression:

BsonClassMap.RegisterClassMap<MyClass)(cm => {
cm.MapProperty(c => c.SomeProperty);
cm.MapProperty(c => c.AnotherProperty);
});

=>(thanks you)



 Comments   
Comment by Githook User [ 24/Apr/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-3250: fixing syntax
Branch: master
https://github.com/mongodb/docs-ecosystem/commit/89016b514cbfe7a1769015ecf0b052aa7301e641

Comment by Sam Kleinman (Inactive) [ 24/Apr/14 ]

Craig, could you take a look at this and validate?

Generated at Thu Feb 08 07:45:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.