79181310

Date: 2024-11-12 13:31:52
Score: 1.5
Natty:
Report link

Try below steps to solve your problem

  1. Delete Model Snapshot. Check if there’s a ModelSnapshot file in the Migrations folder (usually named something like ModelSnapshot.cs). Sometimes this file keeps a record of the current model state. So delete this file manually.

  2. After deleting migrations and snapshots, rebuild your project. And re-add initial migration.

  3. If you had any custom configurations, such as Fluent API configurations or .Entity mappings, ensure they’re also removed.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tharuka Deshan