title: Class inheritance when is mapped to table c#
body: <p>Is it possible to create a class inheritance when one of the class is mapped to a table in a db? I'm trying to use this classes for different methods and I want to show only the info I need</p>
  
  <p>I'm getting this error "Message": "Error.", "ExceptionMessage": "The column name  'Discriminator' is not valid.", "ExceptionType": "System.Data.SqlClient.SqlException"</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel.DataAnnotations;
  using System.ComponentModel.DataAnnotations.Schema;
  
  
  namespace Someproject.Models
  {
  
      [Table("Vo_User")]
      public class FirstClass
      {
          [Key]
          public Int64 id { get; set; }
          public string title { get; set; }
          public string post { get; set; }
      }
  
      public class SecondClass : FirstClass
      {
          public string State { get; set; }
          public Int32? Code { get; set; }
          public Int32? Company { get; set; }
          public string Flag_Approved { get; set; }
  
          [ForeignKey("IdExample")]
          public virtual ICollection&lt;ExampleClass&gt; Example { get; set; }
      }
  
  }
  </code></pre>
  
  <p>"Message": "Error.",
          "ExceptionMessage": "El nombre de columna 'Discriminator' no es válido.",
          "ExceptionType": "System.Data.SqlClient.SqlException"</p>