使用不同实体的linq查询

问题描述:

实际上我有两个tableA,tableB我在tableA中有记录.
TanleA与一个实体有关,而TableB与另一实体模型有关
如果我在tableB中具有相同的相关记录,那么如果未在tableB中插入记录,则应该显示TRUE,它应该显示FALSE.最后,我应该在网格显示中显示所有记录,因此请告诉我可以进行哪种方式.请给我发送示例代码...

Actually i have two tableA, tableB i have records in tableA.
TanleA is related to one entity and TableB is related to another entitymodel
If i have the same related records in tableB then i shoulds display TRUE if records are not inserted in tableB it should display FALSE. Finally i should display all records in grid display so please tell me in which way i can proceed. PLease send me sample code...

嗨Sukanya Karri,

我不知道您是否还在寻找答案.

我也不知道您是否将问题发布在正确的位置.也许您应该在linq问题下尝试.

但是,我可以说的是,您不能将来自两个不同上下文的数据放在一起.

您可以点击以下链接获取更多详细信息:

http://social.msdn.microsoft.com/Forums/zh/adodotnetentityframework/thread/7a6093d7-c7ea-43ce-bd01-19c4b1fba724 [
Hi Sukanya Karri,

I don''t know if your still looking for an answer on this.

I don''t know as well if you posted your question in the right place. Maybe you should try under linq questions.

But, what I can say by the way, is that you can''t put together data from two different contexts.

You can follow the link below for more details:

http://social.msdn.microsoft.com/Forums/en/adodotnetentityframework/thread/7a6093d7-c7ea-43ce-bd01-19c4b1fba724[^]

Regards,

José