How to I define/change the mappings for Linq To Sql in code.

Posted by Ian Ringrose on Stack Overflow See other posts from Stack Overflow or by Ian Ringrose
Published on 2010-04-29T15:15:47Z Indexed on 2010/04/29 15:17 UTC
Read the original article Hit count: 236

Filed under:
|
|

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.)

© Stack Overflow or respective owner

Related posts about linq-to-sql

Related posts about orm