I've got a database, and an entityset created by the O/R-Mapper, using all this with LINQ.
In the O/R-Mapper I need to enter a table name (source) for every table, which is being used for the SQL generated by LINQ. In the .dbml file it looks like this:
<Table Name="dbo.Customers" Member="Customers">
Now I'd like to change this table name during runtime, so the SQL will be run against some other table (customers2008 instead of customer, for example).
Is there any way to change the table name (source name) during runtime?
[Update] After some testing to my dismay I had to discover that XmlMappingSource does render computed properties which are not persisted in the database unaccessable (yes, even the mapping created by SqlMetal does ignore everything which is not persisted).