title: Storing entity with null values in some fields in RavenDB
body: <p>I am using RavenDB (NoSQL Database), and I have this class:</p>
  
  <pre><code>public class VirtualDirectory
      {   
          public string Id { get; set; }
          public string HostAlias { get; set; }
          public string VirtualPath { get; set; }
          public string IdentificationMethod { get; set; }
          public int IsCancelled { get; set; }
      }
  </code></pre>
  
  <p>I'm initiating a new instance of this class by:</p>
  
  <pre><code>VirtualDirectory vd = new VirtualDirectory() { HostAlias = "bla", IsCancelled = 0 };
  </code></pre>
  
  <p>And saving the document by:</p>
  
  <pre><code>using (var session = DbConnection.Instance.DocumentStore.OpenSession(DbName))
              {
                  session.Store(vd);
                  session.SaveChanges();
              }
  </code></pre>
  
  <p>From what i've learned about NoSQL DB documents, the documents are not bound to schema, so their structure is flexible.</p>
  
  <p>My questions are: 
  How can I save the data to my RavenDB database, without getting null values in the fields I didn't set ? After the last piece of code, my db looks like:</p>
  
  <pre><code>{
   HostAlias : "bla",
   VirtualPath : null,
   IdentificationMethod : null,
   IsCancelled : 0
  }
  </code></pre>
  
  <p>When I get a C# object (VirtualDirectory type) that is missing some fields like:</p>
  
  <pre><code>{
   HostAlias : "bla",
   IsCancelled : 0
  }
  </code></pre>
  
  <p>will it be with null values ?</p>