Disclosure: When you purchase a service or a product through our links, we sometimes earn a commission.Β Read More..

FREE Email Marketing Course

LinQ query returns null result always? [on hold]

October 20, 2019 By admin

Software https://softwareengineering.stackexchange.com/questions/387587/linq-query-returns-null-result-always

I’ve Nine Hunting parameter which(Optional parameters) is passed by leading end utilizing angular 6 to internet API. This query is composed in web API and wants to find the result based on any hunting parameter passed. However, Query returns null a while and some time it provides result but implements where illness

Var CallDetails = (from tblTrans in masObjEntities.tbl_MetaData_Trn
where
(CallStTime ! ) CallETime ! = “” || AgntLivVoxId ! = “” || AcntNo ! = “” || recFileName ! =”” ) &(tblTrans.Call_Start_Time p = CallStTime || CallStTime == null) &&
(tblTrans.Call_End_Time 0 && callRecording1.selectedCars1.Contains(tblTrans.Call_Center.ToString())) ||
(selectedAgentsLength > 0 && callRecording1.selectedAgents.Contains(tblTrans.Agent_Result.ToString())))
orderby tblTrans.ID ascending
choose new

TblTrans.Account,
tblTrans.Agent_Name,
tblTrans.Agent_Result,
tblTrans.Call_Center,
tblTrans.Call_Start_Time,
tblTrans.CSV_MetaDataFileName,
tblTrans.Duration_Secs,
tblTrans.Phone_Dialed,
tblTrans.Rec_File_Name
).ToList();