PDA

View Full Version : نحوه نوشتن select در linq



سیروس مقصودی
یک شنبه 05 دی 1395, 09:50 صبح
با سلام من چگونه ميتوانم دستور select زير را با linq بنويسم

select w.s_hdr,w.s_btn,w.flg_btn,a.item_system,w.code_hdr ,w.code_btn,w.desc_hb
from f_account a,f_account_w w
where a.header_desc=w.code_hdr and a.button_desc=w.code_btn
and a.code_user='مديرمالي'
order by a.item_system,w.s_hdr,w.s_btn

دستورات زير مربوط به join دوتا جدول ميباشد .

where a.header_desc=w.code_hdr and a.button_desc=w.code_btn

با تشكر ...

codedeveloper
یک شنبه 05 دی 1395, 14:27 عصر
Var Result = FROM a IN f_account
JOIN w IN f_account_w ON a.x equals w.x
WHERE a.header_desc = w.code_hdr && a.button_desc = w.code_btn &&
a.code_user='مديرمالي'
orderby a.item_system,w.s_hdr,w.s_btn