I have inherited an application that speaks to many different customer databases.
Most of these tables in client databases have an identical design, but there are several tables with additional custom columns that contain tax information (I am a bad idea - I know ... I have not installed it).
These additional columns can be called anything. They are known at runtime because they can be found in another table.
I can configure EF to read / write these tables (skip dynamic columns), but I really need this information - since this is tax data.
I think my best route is to have a fixed model with added added properties that can be filled with these dynamic columns.
How can I get the Entity Framework to dynamically read and write these columns without using custom SQL statements with every call?
I can do extra reads and writes to read and write these extra columns separately (using custom sql) ... but there must be some way to override EF so that it knows about these extra columns and can handle them correctly.
Any help would be appreciated.
source share