I have two tables.
1) Employee
which have Id, Name, DeptId
columns.
2) Department
which have Id and DeptName
columns.
I want to find all department which have no any employee using Linq to sql.
IN sql I use below query:
Select * from Department Where Id not in
(Select DeptId from Employee where DeptId Is not Null )