How do I use EntityDatasource (Or LinqDatasource) with a Union clause
问题 How do I combine records from two tables in an Entitydatasource control? I have googled it and searched on SO with no luck. The SQL of what I need is SELECT DISTINCT username FROM (SELECT s.username FROM project_stakeholders s UNION SELECT t.username FROM project_team_members t) My entities structure is as follows: project_stakeholders ---------------------- project_stakeholders.record_id (PK) project_stakeholders.username project_stakeholders.project project_stakeholders.project_id (FK)