it seems there is a problem in migration process, run add-migration command in “Package Manager Console”:
Add-Migration Initial -IgnoreChanges
do some changes, and then update database from “Initial” file:
Update-Database -verbose
Edit:
-IgnoreChanges is in EF6 but not in EF Core, here’s a workaround:
https://stackoverflow.com/a/43687656/495455
Related Contents:
- Debug code-first Entity Framework migration codes
- The term ‘Update-Database’ is not recognized as the name of a cmdlet
- How to create index in Entity Framework 6.2 with code first
- Multiple DB Contexts in the Same DB and Application in EF 6 and Code First Migrations
- How to create index in Entity Framework 6.2 with fluent configuration
- How to disable cascade delete for link tables in EF code-first?
- How can I force entity framework to insert identity columns?
- How to create a table corresponding to enum in EF6 Code First?
- Using Entity Framework (code first) migrations in production
- Code-first migration: How to set default value for new property?
- EF CodeFirst: Either the parameter @objname is ambiguous or the claimed @objtype (COLUMN) is wrong
- “Cannot drop database because it is currently in use”. How to fix?
- Error 3004: Problem in mapping fragment starting at line [closed]
- Where can I find the console or debug output from code executed in the package manager window?
- Do you use source control for your database items? [closed]
- What database does Google use?
- How do I create a MongoDB dump of my database?
- Generate the ERD for an existing database [closed]
- How do I move a redis database from one server to another?
- How to use mongoimport to import csv
- How are people unit testing with Entity Framework 6, should you bother?
- Elastic search, multiple indexes vs one index and types for different data sets?
- Exposing database IDs – security risk?
- What is the most efficient way to store tags in a database?
- Database vs File system storage
- Default value for Required fields in Entity Framework migrations?
- Does anyone know of a good library for mapping a person’s name to his or her gender? [closed]
- How can I diff two Oracle 10g Schemas?
- docker swarm database connection reset by peer
- Best representation of an ordered list in a database?
- Inventory database design [closed]
- EF: Validation failing on update when using lazy-loaded, required properties
- Large public datasets? [closed]
- Where can I find sample databases with common formatted data that I can use in multiple database engines? [closed]
- Is it a good idea to use an integer column for storing US ZIP codes in a database?
- Scaling Postgres horizontally
- Database schema design for a double entry accounting system? [closed]
- Save detached entity in Entity Framework 6
- Synchronous database queries with Node.js
- MapKey vs HasForeignKey Difference – Fluent Api
- How do you query DynamoDB?
- An error occurred while saving entities that do not expose foreign key properties for their relationships
- How to find out the connection limit per user on Postgresql?
- What is the difference between graph-based databases and object-oriented databases?
- Is Microsoft dropping support for SDF database files in Visual Studio?
- Is it okay to always leave a database connection open?
- Row count of a column family in Cassandra
- ‘No Entity Framework provider found’ for EF 6 and SQLite 1.0.96.0
- Best way to test a MS Access application?
- Code First Migration with Connection Strings