title: Represent an Embedded MongoDB Document when defining an Entity Class in C#
body: <p>My goal is to initialize a class that represent a document (Book) that has a containing document (Details). Developing in ASP.NET / C# / MongoDB.</p>
  
  <p>I have the following C# class:</p>
  
  <pre><code>Public Class Book{
  
    public BsonString Name {get; set;}
  
  }
  </code></pre>
  
  <p>How do I add an embedded document to that class.</p>
  
  <p>For example:</p>
  
  <p>I want the <code>details</code> to be included as a sub collection (embedded document) inside the parent document when I insert it to MongoDB database.</p>