方法一:
var query = db.Test.Where(x => true) .Include(x => x.ColB.Select(s => s.ColBRelated)) .Include(x => x.ColC)
方法二:
var query = db.Test.Where(x => true); query = query.Include("ColB"); query = query.Include("ColC"); query = query.Include("ColB.ColBRelated");
多级外链查询,test有外联数据colB和colC,colB有外链数据ColBRelated。