EF tells you in which class the error is located, but that's it. It could be any of the properties that don't work! If you have a database table with 20 or 50 fields, good luck in tracking down the error. The best info I've found is that the error can be caused by:
- 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)
No comments:
Post a Comment