Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to convert given sql queries to linq ?

select * from SycZone As a
left join SycZoneSelected As b
On a.SycZoneId = b.SycZoneId
where b.SycZoneId is null
Posted
Updated 29-Sep-13 1:14am
v2

from a in SysZone
join b in SycZoneSelected
on
SQL
a.SycZoneId = b.SycZoneId
where b.SycZoneId is null

C#
select new
{
SysZone.Property1,
SysZone.Property2,
}
 
Share this answer
 
v3
XML
var results = (from a in DcSystemConfiguration.GetTable<SycZone>()
                               join u in DcSystemConfiguration.GetTable<SycZoneSelected>()
                               on a.SycZoneId equals u.SycZoneId
                               select a).ToList();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900