0
嘿,我想在linq中做一個子查詢,但子查詢是一個值,它似乎不工作,任何人都可以幫忙嗎?我正在使用entit框架工作,我一直得到和INT字符串錯誤不知道爲什麼。子查詢linq
from lrp in remit.log_record_product
join lr in remit.log_record on lrp.log_record_id equals lr.log_record_id
where (lrp.que_submit_date >= RadDatePickerStartDate.SelectedDate) && (lrp.que_submit_date <= RadDatePickerEndDate.SelectedDate)
select new { lrp.que_submit_date,
lr.officer_name,
lr.c_fname,
lr.c_lname,
lrp.price_sold,
lrp.product_cost,
gap_account_number = (from gap in remit.gap_contracts where gap.log_record_product_id == lrp.log_record_product_id select gap.account_number),
iui_account_number = (from iui in remit.iui_contracts where iui.log_record_product_id == lrp.log_record_product_id select iui.account_number),
dp_account_number = (from dp in remit.dp_contracts where dp.log_record_product_id == lrp.log_record_product_id select dp.account_number),
mpd_account_number = (from mpd in remit.mbp_contracts where mpd.log_record_product_id == lrp.log_record_product_id select mpd.product_account_number)
}
你得到什麼錯誤exctly和哪一部分? – Vishal 2010-06-14 22:21:32