使用efw4.0从两个表中获取数据 [英] Fetching data from two table using efw4.0
本文介绍了使用efw4.0从两个表中获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过在efw4.0(实体框架)中传递单个id从两个表(具有外键)中获取数据,返回值应该是什么?
How to get data from two table(having foreign key) by passing single id in efw4.0(entity framwork) and what should be its return type?
推荐答案
看看本文的底部,两个具有ID字段的表之间有一个联接.
LINQ到实体:基本概念和功能 [ ^ ]
Take a look at the bottom of this article there is a join between two tables with ID fields.
LINQ to Entities: Basic Concepts and Features[^]
这篇关于使用efw4.0从两个表中获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文