How do I fix "error 1004, 0, Unable to find property" in an Entity Framework 4 WinForms application?
- by Ivan
I've designed an EF4 model (quite complex inheritance, lots of small tables incl. multiple self-referencing), generated (table-per-type) a database and inserted some basic data manually.
It works fine in an ASP.Net Dynamic Data Entities web application with full automatic scaffolding.
But when in a WinForms application using the same model (I share it as a part of a class library) I construct a query and bind a combo box to it (the way it's shown here), I get an InnerException {"Internal .NET Framework Data Provider error 1004, 0, Unable to find property...
I've found a question about the same problem here (incl. a sample to reproduce the error) but no answer. I use final Visual Studio 2010, no beta.