Well, I found a place to configure this, although I still haven't found a way to override or extend the linq request to load data:
In the \ DynamicData \ FieldTemplates \ ForeignKey_Edit.ascx.cs file (in accordance with the default position), the following call is made in the Page_Load method:
PopulateListControl(DropDownList1);
This can be completely replaced by your own code. In my case, I first checked if the current table implements the user interface that I defined. If so, use this to get the data to bind the drop down list to, otherwise pass control to the PopulationListControl.
Using a Reflector, it seems that PopulateListControl ultimately uses MetaTable.GetQuery () to get the default query for the table. It would be great to expand this, but instead, let's move on to other things!
source share