var data=from d in t0
join c in t1
on t0.memberid equals t1.memberid
where t1.nodeid='ca500269-e41a-4b3d-b3a4-acb4eed54d1e' into p
select p
大概是这样
我怎么感觉刚刚在CSDN上回答过这个问题。。。。
where t1.nodeid=new Guid("......")
var query =
from r in db.Roles
join sr in
(
from ss in db.StaffInRoles
where ss.StaffId == staffId
select ss
)
on r.Id equals sr.RoleId
into x
from y in x.DefaultIfEmpty()
select new RoleInfo
{
RoleId = r.Id,
RoleName = r.Name,
IsSet = y != null
};
看看木野狐的答案