Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 实体服务查询返回true或false_C#_Entity Framework - Fatal编程技术网

C# 实体服务查询返回true或false

C# 实体服务查询返回true或false,c#,entity-framework,C#,Entity Framework,我如何得到这样一个简单的查询 from asg in context.assigmentGen join agc in context.assignmentContact on asg.contact equals agc.contact where agc.contact = "123" 我怎样才能让它返回true或false?您尝试过这个吗?但这取决于您希望它何时返回true或false:) 当然,很高兴我能帮忙。如果这解决了您的问题

我如何得到这样一个简单的查询

from asg in context.assigmentGen
                            join agc in context.assignmentContact on asg.contact equals agc.contact
where agc.contact = "123"

我怎样才能让它返回true或false?

您尝试过这个吗?但这取决于您希望它何时返回true或false:)


当然,很高兴我能帮忙。如果这解决了您的问题,您可以将其标记为答案:)正在等待计时器消失
(from asg in context.assigmentGen
 join agc in context.assignmentContact on asg.contact equals agc.contact
 where agc.contact = "123").Any()