I was learning ASP.NET Core MVC through Microsoft Learn and I'm having this problem with adding a new field to an ASP.NET Core MVC app. I first added a new column in the SQL Server table through the designer (dbo.Table [Design]) and then updated it (Shift+Alt+U) and made changes in my model and views.
In my SQL Server Object Explorer, the new column wasn't showing up, so then I tried to update the database through Package Manager Console
Update-Database
and I get this error:
Error Number:15248,State:1,Class:11
Either the parameter @objname is ambiguous or the claimed @objtype (COLUMN) is wrong.
I'm stuck here and nothing's working. I even tried dropping the column and then again tried adding it but still no luck as on updating it showing the same error. Please suggest how to resolve this error.