For anyone else dealing with the error, I think it’s worth mentioning some scenarios that I’ve found that cause this (extremely unhelpful) error:
- Misspelled properties (case-sensitive!)
- Properties missing in the POCO class
- Type mismatches between the POCO and entity-type (e.g., int instead of long)
- Enums in the POCO (EF doesn’t support enums right now as I understand)
There might be other causes as well.
HTH