Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

How to perform outer join in entity framework

$
0
0

How can I perform a left outer join on two tables using entity framework? Below I can easily perform an inner join. Yet I have not a clue how to perform an outer join?

 

 

IEnumerable<TheList> myList = (from rowCal in custMain.CustomerAnswerList
                                 join rowCalVal in custMain.CustomerAnswerListValues
                                 on rowCAL.ListNameId equals rowCALVal.ListNameId
                                   select new CustomerQuestionAnswerList     
 {     
 ListID = rowCALListID,      
AnswerTypeID = rowCAL.AnswerTypeID

  }


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>