Microsoft.Data.SqlClient.SqlException
Invalid column name 'TotalViews'.
An unhandled exception occurred on line 146
143 |
|
---|---|
144 |
|
145 |
|
146 |
|
147 |
|
148 |
|
Solution
I added new fields to my entity and didn't run the migrations. Ensure migrations have been created using the Add-Migration and ensure they are ran using the Update-Migration commands.
Mar 28, 2021
•
Anyone
Install the browser extension
Found this solution helpful? Try our extension for quick solutions to your .NET errors.
Add to Chrome - It's free
0 replies