i have a school class that have a list of rooms
public class School
{
public int Id { get; set; }
public string Name { get; set; }
public virtual IList<Room> Rooms { get; set; }
}
public class Room
{
public int Id { get; set; }
public int SchoolId { get; set; }
public string Name { get; set; }
}
now i wanna to get list of schools with rooms of them using stored procedure.
I know it's possible and so simple with 'Include' function in code first mode.
it's possible in NHibernate and MyBatis.Net Orms.
is it possible In EF ?