Home > DeveloperSection > Forums > Use Join in Linq query.
Ankit Singh

Total Post:341

Points:2389
Posted on    February-14-2016 9:50 PM

 LINQ LINQ 
Ratings:


 1 Reply(s)
 261  View(s)
Rate this:
how to use join in linq query.


Ankit Singh

Total Post:341

Points:2389
Posted on    February-14-2016 10:07 PM

here we are  join tow table in linq query .

 var Result = db.CUSTOMER.Join( 
db.ORDER,
cust => cust.CUST_ID,
ord =>ord.CUST_ID,
(cust, ord) => new
{
CustomerName = cust.CUST_NAME,
OrderDate=ord.ORD_DATE
});

Don't want to miss updates? Please click the below button!

Follow MindStick