最好每个点讲下啊.IQueryable cust10 = (from c in customersjoin p in d
来源:学生作业帮 编辑:拍题作业网作业帮 分类:数学作业 时间:2024/06/05 18:03:03
最好每个点讲下啊.
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 { .}
首先这是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 选哪个