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

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

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • v1.3.4
    • Affects Version/s: None
    • Component/s: ecosystem
    • Environment:

      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)

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

              Created:
              Updated:
              Resolved:
              10 years, 3 weeks, 5 days ago