开发者

Use the same linq with different table prefixes

开发者 https://www.devze.com 2022-12-24 07:07 出处:网络
I have a webapplication that uses LINQ to connect to a database. The problem is that I Only have 1 database, and I need a several copy\'s of the tables, 1 cop开发者_如何学编程y / client. Is it possibl

I have a webapplication that uses LINQ to connect to a database. The problem is that I Only have 1 database, and I need a several copy's of the tables, 1 cop开发者_如何学编程y / client. Is it possible to make linq use a set of tables acording to their prefex ?


You can drag and drop the same table to the surface of dbml file and rename the newly added table in dbml to anything you want, that way you can have more than on represenation of single table in linq and you can easily implement whatever you want

I hope I understand your problem correctly

0

精彩评论

暂无评论...
验证码 换一张
取 消