8,497
社区成员
发帖
与我相关
我的任务
分享
var result = (from a in dbcontext.DownLoadFolders
join b in dbcontext.DownLoadFolders
on a.pgid Equals b.id
join c in dbcontext.DownLoadFolders
on b.pgid Equals c.id
join d in dbcontext.DownLoadFolders
on b.pgid Equals d.id
where d.id = 277
select a).Orderby(p=>p.id);
var result = from a in dbcontext.DownLoadFolders
join b in dbcontext.DownLoadFolders
on a.pgid Equals b.id
join c in dbcontext.DownLoadFolders
on b.pgid Equals c.id
join d in dbcontext.DownLoadFolders
on b.pgid Equals d.id
where d.id = 277
select a;
select * from dbo.DownLoadFolder
where pgid in (select id from dbo.DownLoadFolder
where pgid in (select id from dbo.DownLoadFolder
where pgid = 277)
)
order by id
var result = dbcontext.DownLoadFolders.SingleOrDefault(p=>p.id = 227).Orderby(q=>q.id);
string s = " 80,81,83,82";
string[] s1 = s.Split(',');
int[] p = new int[s1.Count()];
for (int i = 0; i < s1.Count(); i++)
{
p.SetValue(Convert.ToInt32(s1[i]), i);
}
public IQueryable<tbQuestions> SelectQuestions(int[] p)
{
var result = from s1 in db.tbQuestions
where !p.Contains(s1.id) && s1.deleteFlag == 0
select s1;
return result;
}