I came across Walaa's suggestion in this thread
http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=5528
where he says
1- Create a database View that Union(s) all your LookUp Tables (hence preserving the Refrential Integrity they have with another tables)
2- This view will have a new discriminator column that differentiate between values from each table.
3- Map the view to an Entity or a TypedView
4- You will need to pass the discrminating value to your Fetch Logic method to filter upon.
Is it possible to set this up so you can save/edit entities? My view was initially looking like this
SELECT Id, Name, Description, 1 AS 'LookupType'
FROM dbo.Lookup1
UNION
SELECT Id, Name, Description, 2 AS 'LookupType'
FROM dbo.Lookup2
UNION
SELECT Id, Name, Description, 3 AS 'LookupType'
FROM dbo.Lookup3
UNION
SELECT Id, Name, Description, 4 AS 'LookupType'
FROM dbo.Lookup4
This works great for fetching, but since I am embedding the discriminator value in the select, any updates fail.
Is there any way to have one view which fetches all values from multiple tables while still maintaining the ability to make edits and insertions?