i want convert following query to lambda expression (am working on mvc 4)
SELECT ap.BillDate,ap.Party,ap.Amount, apa.AmountAdjusted as amount
FROM Accounting_PendingBills ap
INNER JOIN Accounting_PendingBillsAdjusted apa
ON ap.VNumber=apa.VNumber
this query resulting in database
i have tried like this in controller
var data =
from ap in db.Accounting_PendingBills
join apa in db.Accounting_PendingBillsAdjusted on ap.VNumber equals apa.VNumber
select new {Accounting_PendingBills= ap,Accounting_PendingBillsAdjusted=apa };
but not getting values here
Midhun TpPosted Sep 6, 2016, 7:46 AM
Midhun TpPosted Sep 6, 2016, 9:36 AM
If that doesn't solves your issue, just post a new question. Experts out there will definitely gives you the solution. Thanks!
suman goudPosted Sep 6, 2016, 8:13 AM
suman goudPosted Sep 6, 2016, 7:42 AM
Midhun TpPosted Sep 6, 2016, 7:31 AM