实体框架工作(可以写这个LINQ lambda表达式) [英] entity frame work (Can this LINQ lambda expression be written)

查看:83
本文介绍了实体框架工作(可以写这个LINQ lambda表达式)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

选择e.ElectionResponceValue来自Election e inner join [Statement] s

on s.StatementID = e.StatementID inner join Division d

on d.DivisionID = s .DivisionID内连接ElectionResponce er

on er.ElectionResponceID = e.ElectionResponceID

其中d.DivisionID =



division id是3,5,2

select er.ElectionResponceValue from Election e inner join [Statement] s
on s.StatementID=e.StatementID inner join Division d
on d.DivisionID=s.DivisionID inner join ElectionResponce er
on er.ElectionResponceID=e.ElectionResponceID
where d.DivisionID=

division id are 3,5,2

推荐答案

首先,请阅读我对这个问题的评论。



其次,请按照以下链接尝试!

LINQ(语言集成查询) [ ^ ]

基本LINQ查询操作(C#) [< a href =http://msdn.microsoft.com/en-us/library/bb397927.aspxtarget =_ blanktitle =New Window> ^ ]

如何:用C#编写LINQ查询 [ ^ ]
First of all, please read my comment to the question.

Secondly, please, follow below links and try!
LINQ (Language-Integrated Query)[^]
Basic LINQ Query Operations (C#)[^]
How to: Write LINQ Queries in C#[^]


这篇关于实体框架工作(可以写这个LINQ lambda表达式)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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