Otis wrote:
Are you trying to bind a non-string property to the textbox' text property?
No.. actually This behaviour is repeatable. I even created a new database that only has three tables (TableA --1-to-n--> TableB --1-to-n--> TableC).
If I generate DAL for this database and then try to build a simple WinForm that has two textboxes. If I drag an entityCollection to bind (TableB) in this WinForm; I am only able to do one binding (the first binding) and then if I try to bind any TextBox to any property in TableB's colleciton I get the error mentioned here (TableA and TableC are OK).
I posted another thread about this issue in this forum also.
My investigating this issue so far showed that this behaviour only happens for Entities that are on the PK side of one or more relation and also are on the FK side of one or more other relations.
Example:
Nationality --> Employee --> EmployeeLeaves
Relations
Nationality.Id (PK) --> Employee.NationalityId (FK)
Employee.Id (PK) --> EmployeeLeaves.EmployeeId (FK)
When I try to bind a WinForm for (Employee) I can only bind one of EmployeeEntity's properties at design time and then I get the above-mentioned error If I try to bind any other property .