title: Create a table if it does not exist?
body: <p>Using Entity Framework Core, is there a way to create the table if it does not yet exist? Exception will throw even if <code>EnsureCreated</code> is called in the context:</p>
  
  <pre><code>DbSet&lt;Ticker&gt; Ticker { get; set }
  Database.EnsureCreated();
  
  Ticker.Add(...);
  dbctx.SaveChanges(); &lt;== exception
  </code></pre>
  
  <p>Results in exception:</p>
  
  <blockquote>
    <p>System.Data.SqlClient.SqlException: Invalid object name 'Ticker'</p>
  </blockquote>
  
  <p>Is there a way to create the table <code>Ticker</code> before data is inserted?</p>
  
  <p>== EDIT==</p>
  
  <p>This questions is not to create/migrate the entire database, the database always exist and most of its tables also exists, but some of the tables may not. So I just need create one or two tables in runtime.</p>