title: Entity Framework Database First - How to prevent running the initial migration?
body: <p>I was able to scaffold an existing database using EF Core recently. We want to completely migrate to EF Core, but we've hit some snags and I need your help.</p>
  <p>We began by running the scaffold command and ended up with this file structure</p>
  <pre><code>C:\&gt;ls .\EFCore
  Context
  Models
  EFCore.csproj
  </code></pre>
  <p>Then after creatinng the Context and the Models, I ran the inital migration command.</p>
  <pre><code>dotnet ef migrations add CreateDb
  </code></pre>
  <p>After running that command our directories look like this</p>
  <pre><code>C:\&gt;ls .\EFCore
  Context
  Models
  Migrations
  EFCore.csproj
  
  C:\&gt;ls .\EFCore\Migrations
  20210616210256_CreateDb.cs
  20210616210256_CreateDb.Designer.cs
  DbContextModelSnapshot.cs
  </code></pre>
  <p><strong>My Problem</strong></p>
  <p>The database is already created in all environments, so we don't want entity to execute the inital database migration. Should I delete <code>20210616210256_CreateDb.cs</code> and <code>20210616210256_CreateDb.Designer.cs</code> to achieve this?</p>
  <p>The other route I can think of is create the <code>__EFMigrationsHistory</code> table and insert a row into it. This would fake that we've already ran the inital db create.</p>
  <p>Help please, I would like to do this the cleanest way possible.</p>