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

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

    XMLWordPrintableJSON

Details

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

    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 (Inactive)
            Jess Mokrzecki Jess Mokrzecki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 8 weeks ago