System.NullReferenceException: Object reference not set to an instance of an object. #20348
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
I need to delete a property in the class, and then execute add migration command, but the error is prompted
Steps to reproduce
model
I delete the CodeName1 attribute in the City class, and execute the command
Add-Migration DelCodeName1 -verbose
,following error is returned.I'm going back to version 3.1. 2.Everything is OK
Further technical details
EF Core version:5.0.0-preview.2.20120.8
Database provider: Microsoft.EntityFrameworkCore.SqlServer 5.0.0-preview.2.20120.8
Target framework: NET Core 3.1
Operating system:Windows 10
IDE: Microsoft Visual Studio Enterprise 2019 16.4.6
The text was updated successfully, but these errors were encountered: