将单个类映射到多个表 [英] mapping single class to multiple table
本文介绍了将单个类映射到多个表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用LINQ to SQL编写程序,我有LINQ OR设计器生成的客户类..它映射到customer_en表..但是在运行时我希望将客户类的映射更改为基于不同的表在用户输入上。有人可以告诉我如何在LINQ to SQL中实现这一点
I have written program using LINQ to SQL, i have customer class generated by LINQ OR designer .. and it maps to customer_en table..but during runtime i want to change the mapping of customer class to different table based on the user input . Could somebody tell me how to achive this in LINQ to SQL
推荐答案
嗨raghavsri,
这是一个WCF特定的论坛,请在 LINQ to SQL论坛上提出您的问题。
问候,左约翰
Hi raghavsri,
this is a WCF specific forum, please ask your question over at the LINQ to SQL forum .
Regards,
John
这篇关于将单个类映射到多个表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文