Suppose I have employee and department table, employee has foreign key departmentID that is primary of department table.
I use following code to get a single instance of an entity based on Linq to SQL: db.Employee.SingleOrDefault(e => e.empid == id); but I want to get the instance of department at the same time. How to write linq for this requirement?