2013-04-09 168 views

回答

2

是的 - 預先加載,你添加一個Include()調用(MSDN):

context.Request.Include(request => request.NavigationProperty)... 

這是一個擴展方法,讓你有一個使用作出補充它可見:

using System.Data.Entity; 

這裏有一篇有關MSDN的文章:Entity Framework - Loading Related Entities