Changing table name at run time!!
-
Hi folks, The generated linq-to-sql classes store the table name as an attribute; is there anyway I can make them dynamic? I want to use the same classes but for a different table with exactly the same schema. Any luck here :confused: Thanks, Syed Mehroz Alam
-
Hi folks, The generated linq-to-sql classes store the table name as an attribute; is there anyway I can make them dynamic? I want to use the same classes but for a different table with exactly the same schema. Any luck here :confused: Thanks, Syed Mehroz Alam
Yup, although you have to do a fair bit of work yourself. If you take a look at the stuff that Rick Strahl of WestWind.com has done with regards to Linq and BLL, then you can find out how to do it.
Deja View - the feeling that you've seen this post before.
-
Yup, although you have to do a fair bit of work yourself. If you take a look at the stuff that Rick Strahl of WestWind.com has done with regards to Linq and BLL, then you can find out how to do it.
Deja View - the feeling that you've seen this post before.
Thanks for the reply Pete. Let me search his huge blog.
-
Thanks for the reply Pete. Let me search his huge blog.