最好每个点讲下啊.IQueryable cust10 = (from c in customersjoin p in d
来源:学生作业帮 编辑:百度作业网作业帮 分类:数学作业 时间:2024/07/31 02:11:14
最好每个点讲下啊.
IQueryable cust10 = (from c in customers
join p in db.zz1 on c.zzlxm equals p.zz2
where c.xh == xh
orderby c.id
select new { .}
IQueryable cust10 = (from c in customers
join p in db.zz1 on c.zzlxm equals p.zz2
where c.xh == xh
orderby c.id
select new { .}
![最好每个点讲下啊.IQueryable cust10 = (from c in customersjoin p in d](/uploads/image/z/7342053-69-3.jpg?t=%E6%9C%80%E5%A5%BD%E6%AF%8F%E4%B8%AA%E7%82%B9%E8%AE%B2%E4%B8%8B%E5%95%8A.IQueryable+cust10+%3D+%28from+c+in+customersjoin+p+in+d)
首先这是linq的语法,具体的语法你自己去查咯.我给你说说查询的结果是什么意思.从上面语句看,数据库里面应该有customers、zz1两个表,要查的是customers的zzlxm=zz1的zz2的行相连接后,再筛选customers的xh=xh(已知量)的行,并以customers的id排序.new { .}里面是要查出哪些字段.
再问: 定义的cust10是要筛选出的内容么?
再答: 对啊,cust10.ToList()就相当于查到的表,可以绑定到表格控件上。
再问: 定义的cust10是要筛选出的内容么?
再答: 对啊,cust10.ToList()就相当于查到的表,可以绑定到表格控件上。
最好每个点讲下啊.IQueryable cust10 = (from c in customersjoin p in d
The girl ___a red sweater is from Australia.a.in b,wears c,p
this is a picture ----- Miss Wang.A in.B of C to.D from 选哪个?
It's down the street __ the left .A / B in C on D from
I like to watch football games ( )TV A.on B.at C.in D.from
I painted a picture ___ horses.A,of B,from C,with D,in
she owes 100 dollars ____ her brother A to B from C at D in
My father‘s watch is made____Swiss A.in B.of C.from D.at
My mother is busy____her work.(A at B with C in D from)
our english teacher comes ___ england.A、at B、in C、from D、to
This book was written ___English.A.in B.with C.from D.by
i'm going () Guangzhou Road A in B at C along D from 选哪个