title: Listing all types
body: <p>I've defined a class "Contract", from which I derive several types of contracts.  I'm using Entity Framework for storage and opted for the Table-per-type model such that I end up with tables like Contract_Put, Contract_Call, for the different derived classes.</p>
  
  <p>Now I want to list all contracts and create a field with strings identifying the contract type.  I tried something like this:</p>
  
  <pre><code>var ret = from c in db.Contracts select new ContractsVM { ... }
  </code></pre>
  
  <p>however, there's no way I can find to figure out the type of contract... help?</p>