Linq中的Where子句 [英] Where clause in Linq

查看:82
本文介绍了Linq中的Where子句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是linq和asp.net的新手,在我的网页中,我使用了两个网格视图控件,在第二个网格视图中,我基于gridview选择字段中的值进行填充.选择的值是从不同的表到要在与关键关系船相关的gridview中显示的表字段的,我在dbml设计器中拥有所有表.在前端,我需要从2表中获取带有join的where子句.

任何人都可以帮我吗.

致以问候
Muralekarthick

Hi
I am new to linq and asp.net, in my web page i am using two grid view controls, in the second grid view i am populating based on the value from the gridview select field. the value selected is from different table to the table fields to be shown in gridview which is related with key relation ship, i have all the tables in the dbml designer. in the front end i need to get the where clause with join from the 2 table.

can any one help me please.

With Regards
Muralekarthick

推荐答案

您可以使用 DataRelation 类连接两个数据表
Hi You can use DataRelation Class to join two DataTables


使用实体框架"的模型到LINQ to Entities
use Entity Framework''s model to LINQ to Entities


这篇关于Linq中的Where子句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆