title: How to create more than one table from one database (ASP.NET MVC)?
body: <p>I am working with ASP.NET MVC. The plan is to create a Website where you can switch between to tables.</p>
  <p>The website works with one table but the problem is that when I switch to the other table I can not see the table.</p>
  <p>I use one database for the program and created a second public class for the second table in my Context.cs.</p>
  <p>For the first table I used:</p>
  <pre><code>protected override void OnModelCreating(ModelBuilder modelBuilder)
  {
      modelBuilder.Entity&lt;ImpEx&gt;()
                  .HasIndex(b =&gt; b.Ex_Nr)
                  .IsUnique();
  }
  </code></pre>
  <p>But for the second I am not allowed to use a second method of it.</p>
  <pre><code>protected override void OnModelCreating(ModelBuilder modelBuilder)
  {
      modelBuilder.Entity&lt;ImpExQ30&gt;()
                  .HasIndex(d =&gt; d.Ex_Nr)
                  .IsUnique();
  }
  </code></pre>
  <p>The error is that I am not allowed to use a second method because I have one in my DB already</p>