How to I define/change the mappings for Linq To Sql in code.
- by Ian Ringrose
I wish to be able to change the table a class is mapped to at run time, I can’t do this if all the mappings are defined with attributes. Therefore is there a way to define the mappings at runtime in code.
(I would rather not have to maintain xml mapping files.)