I have got two entity POCO entities with many to many relationships, e.g.
public class Employee
{
public int Id;
public string Name;
public virtual ICollection<Organization> Organizations {get;set;}
}
public class Organization
{
public int Id;
public string Name;
public virtual ICollection<Employee> Employees {get;set;}
}
I want to fetch Employee.Name, Employee.Id, OrganizationID using LINQ. It would repeat data for Employee, but I am ok with it. How should I write LINQ to EF for this.