Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-3250

Comment on: "mongodb-ecosystem/tutorial/serialize-documents-with-the-csharp-driver.txt"

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • v1.3.4
    • ecosystem
    • 4
    • true

    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)

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            xgen-internal-docs Docs Collector User
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 4 weeks, 5 days ago