I have created the application of Linq to Sql dynamic data site. I have many tables with the relational structure. For example: tblSite, tblSiteImage, tblSiteAdvertisement, tblGenericCategory, tblEntityType etc. tblSite is my parent table for all the other tables. I would like to apply the filter for all these tables i.e. the filter of tblSite.
That means, there should be the Drop down list(DDL) of tblSite data. After changing selection of the data from the DDL, it should filter the data from these tables.
Please note that the SiteId column exists in some of the tables like tblGenericCategory but not present in the table tblEntityType. But these 2 tables are connected using EntityTypeId column from tblEntityType.
So the relation shows something like below:
tblSite ------> tblGenericCategory ------> tblEntityType
I want to apply filter of SiteId to table tblEntityType.
So, my question is this:
How can I apply filter to the child of child table in Dynamic Data Site application?
Thanks in advance.