title: Moving CreateIdentityShema.Designer Migration Script Causing No Suitable Method for Override
body: <p>I am building an ASP.NET Core web application using n-tier architecture. I want to use ASP.NET Core Identity as my user account manager as I've used it on ASP.NET Framework with no issues. After creating my initial project, an ASP.NET Core Web MVC with individual user accounts enabled, I created some additional projects, being class libraries, all of which target the 6.0 SDK.</p>
  <p>I am using one of these projects as my data access layer. After creating all of the layers, I ensure that my NuGet packages are installed on every project and that my projects have the correct references.</p>
  <p>Finally, before I begin developing the app, I move the ApplicationDbContext.cs file and the migrations folder to my data access layer, update the namespaces, and expect to ready to begin. However, in the child file of the CreateIdentitySchema.cs, the override method BuildTargetModel throws an error. Here if the complete code and error:</p>
  <pre><code> // &lt;auto-generated /&gt;
  using Microsoft.EntityFrameworkCore;
  using Microsoft.EntityFrameworkCore.Infrastructure;
  using Microsoft.EntityFrameworkCore.Metadata;
  using Microsoft.EntityFrameworkCore.Migrations;
  using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  using System;
  
  namespace ATWS.Data.Migrations
  {
      [DbContext(typeof(ApplicationDbContext))]
      [Migration(&quot;00000000000000_CreateIdentitySchema&quot;)]
      partial class CreateIdentitySchema
      {
          protected override void BuildTargetModel(ModelBuilder modelBuilder)
          {
  </code></pre>
  <p>I only updated the namespace. No other changes were made. But is throws this error:</p>
  <blockquote>
  <p>Severity  Code    Description Project File    Line    Suppression State
  Error CS0115  'CreateIdentitySchema.BuildTargetModel(ModelBuilder)': no
  suitable method found to override ATWS.Data   C:\Project
  Development\ATWS.MasterVersion\ATWS.Data\Migrations\00000000000000_CreateIdentitySchema.Designer.cs   15  Active</p>
  </blockquote>
  <p>I tried moving the folder and back to the MVC project, but the error remains. No amount of googling yields any answers.</p>
  <p>Has anyone seen this before? Any solutions for addressing it?</p>