Is it possible to enumerate all selected fields in a query and determine if they are foreign keys
I am attempting to get a list of selected fields from a query and also determine whether those fields are involved in a foreign key relationship.
So far, I believe this code will get me the list of active fields:
foreach (StatisticsField field in queryBuilderDataSource.QueryStatistics.UsedDatabaseObjectFields)
Is it possible to link the Statistics field to anything which will tell me if the field is a foreign key as well?