❔ 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
Microsoft.Data.SqlClient.SqlException: 'Invalid column name 'CityId'.'
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
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.