C
C#2y ago
populus

❔ Invalid column name 'CityId'.

Working on MVC and EF, created repos,services,viewmodels etc. About to fire up and see if everything is working, accessing the People index causes user-handled exception 'Invalid column name 'CityId''. I have not explicitly typed 'CityId' anywhere, wondering where this variable comes from. Any takers?
3 Replies
populus
populusOP2y ago
Microsoft.Data.SqlClient.SqlException: 'Invalid column name 'CityId'.'
Brainiac V
Brainiac V2y ago
You should not create your own repository over Entity Framework Core that is a really bad practice also without showing any code I'm not sure how you expect anyone being able to help you
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server