title: Entity Framework - Reuse Complex Type
body: <p>I have an Entity in Code First Entity framework that currently looks like this:</p>
  
  <pre><code>public class Entity
  {
      // snip ...
  
      public string OriginalDepartment { get; set; }
      public string OriginalQueue { get; set; }
  
      public string CurrentDepartment { get; set; }
      public string CurrentQueue { get; set; }
  }
  </code></pre>
  
  <p>I would like to create  Complex Type for these types as something like this:</p>
  
  <pre><code>public class Location
  {
      public string Department { get; set; }
      public string Queue { get; set; }
  }
  </code></pre>
  
  <p>I'd like to use this same type for both Current and Original:</p>
  
  <pre><code>public Location Original { get; set; }
  public Location Current { get; set; }
  </code></pre>
  
  <p>Is this possible, or do I need to create two complex types <code>CurrentLocation</code> and <code>OriginalLocation</code>?</p>
  
  <pre><code>public class OriginalLocation
  {
      public string Department { get; set; }
      public string Queue { get; set; }
  }
  
  public class CurrentLocation
  {
       public string Department { get; set; }
       public string Queue { get; set; }
  }
  </code></pre>