I really like Entity Framework, but there are some key pieces that are a challenge to me. Can anyone tell me how to filter an EntityDataSource on an Association column? EF hides the FK values and instead has an Association property. Given an Entity, Person, with a PersonType association, I would have expected something like this to work if I want to filter my Person Entity by Type:
GridDataSource.EntityTypeFilter = "it.PersonType.PersonTypeID = 1";
or
GridDataSource.Where = "it.PersonType.PersonTypeID = '1'";
or even
GridDataSource.WhereParameters.Add(new Parameter("it.PersonType.PersonTypeID", DbType.Object, "1"));
but none of those work. Anybody know how to do this?