I have 2 objects that contain common list properties. IE:
public class User
{
public string Sid { get; set; }
public List<Group> Groups { get; set; }
}
public class Section
{
public string Sid { get; set; }
public List<Group> Groups { get; set; }
}
From my BLL I get a general list of sections List mySections = SectionDB.getList ();
and my User object contains user information User myUser = UserDB.getInfo (sid);
Using linq for objects, is it possible to make a query that returns all sections that have at least one group in the user class of the group?
Any help?
source
share