title: ASP.NET Core 3.1 map multiple datasets to one table
body: <p>I need to map many view models to one table.</p>
  <p>Table:</p>
  <pre class="lang-cs prettyprint-override"><code>[Table(&quot;BaseTable&quot;)]
  public class baseTable
  {
      [Key]
      public int Id { get; set; }
      public string Title { get; set; }
      public byte[] FullText { get; set; }
      public byte[] FullText1 { get; set; }
  }
  
  [Table(&quot;BaseTable&quot;)]
  public class baseTableTitle
  {
      [Key]
      public int Id { get; set; }
      public string Title { get; set; }
  }
  
  [Table(&quot;BaseTable&quot;)]
  public class baseTableFullText
  {
      [Key]
      public int Id { get; set; }
      public string Title { get; set; }
      public byte[] FullText { get; set; }
  }
  
  [Table(&quot;BaseTable&quot;)]
  public class baseTableFullText1
  {
      [Key]
      public int Id { get; set; }
      public string Title { get; set; }
      public byte[] FullText1 { get; set; }
  }
  </code></pre>
  <p>DbContext:</p>
  <pre class="lang-cs prettyprint-override"><code>public class myDbContext : DbContext
  {
      public DbSet&lt;BaseTable&gt; BaseTable { get; set; };
      public DbSet&lt;baseTableTitle&gt; BaseTableTitle { get; set; };
      public DbSet&lt;BaseTableFullText&gt; BaseTableFullText { get; set; };
      public DbSet&lt;BaseTableFullText1&gt; BaseTableFullText1 { get; set; };
  }
  </code></pre>
  <p>And I get a runtime error:</p>
  <blockquote>
  <p>Cannot use table 'BaseTable' for entity type 'BaseTableTitle' since it is being used for entity type 'BaseTable' and there is no relationship between their primary keys.</p>
  </blockquote>
  <p>How can I map many datasets to one table?</p>
  <p>Expexcted usage:</p>
  <blockquote>
  <p>baseTable - read, write</p>
  </blockquote>
  <blockquote>
  <p>baseTable(Title, FullText, FullText1) - read only</p>
  </blockquote>