The situation shown in the figure appears
Solution:
Step 1:
Delete all files in the migrations directory in the figure
Step 2:
Delete this package and reinstall it!!
PM> add-migration Intial_one
Build started...
Build failed.
PM> add-migration Intial_one
Build started...
Build failed.
PM> add-migration Intial_one
Build started...
Build failed.
PM> add-migration IntialCreate
Build started...
Build failed.
PM>
PM>
PM>
PM>
PM> add-migration IntialCreate
Build started...
Build succeeded.
Microsoft.EntityFrameworkCore.Infrastructure[10403]
Entity Framework Core 6.0.2 initialized 'POKEMMONContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.2' with options: None
To undo this action, use Remove-Migration.
PM> add-
OK
Read More:
- How to Solve Spring MVC upload file error
- How to Solve Import antd Error: Module build failed
- How to Solve Docker ERROR: Service’workspace’ failed to build: ERROR: Service’php-fpm’ failed to build
- How to Solve Redis Cluster Build Error
- How to Solve Error “Could not find com.android.tools.build:gradle:3.0.1”
- How to Solve Windows emacs Build lisp slime error
- How to Solve QT Error: The build directory needs to be at the same level as the source directory.
- [Solved] Spring MVC Error: A child container failed during start
- How to Solve Docker failed to initialize Error
- How to Solve Error: Failed to load ApplicationContext
- How to Solve Error: Heartbeating to master:7182 failed.
- How to Solve Application failed to start error
- How to Solve NPM update check failed Error
- How to Solve Logstash error: failed to execute action
- How to Solve Hyperf Failed to Start Error After Aliyun ACM Installed
- Internalerror: GPU sync failed error (How to Solve)
- How to Solve Chrome Error: net::ERR_FAILED
- [Solved] docker failed to solve: failed to solve with frontend dockerfile.v0: failed to create LLB definition
- How to Solve Springboot Error: Failed to convert value of type
- Jenkins uses NPM to build Vue error, and the manual build is normal