如何使用Linq查询计数查询记录数 [英] How I Can use Linq Query count no. of record in query

查看:972
本文介绍了如何使用Linq查询计数查询记录数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

var emailToProcess = 
    from a in db.EmailNotToProcess
    join b in EmailUids on a.ENTPUId equals b.Uid
    where a.ENTPUId != b.Uid
    select b;

这里的EmailUids是一个列表,而EmailUid是该结构中的一个结构,我们有两个选择,例如

Here EmailUids is a List and EmailUid is a struct inside the struct we have two option like

public int EmailId;
public string Uid;

这个..

所以我正在执行查询,但是我无法计算该查询中有多少条记录...

so I am executing the query but I am not able to count the how much record in this query...

谢谢....

推荐答案

您可以使用 查看全文

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