Linq Query with a Where clause in an Include statement
问题 I am trying to replace my big, ugly query; although ugly it works as desired:- using (var ctx = new Data.Model.xxxTrackingEntities()) { var result = ctx.Offenders .Join(ctx.Fees, o => o.OffenderId, f => f.OffenderId, (o, f) => new { Offenders = o, Fees = f }) .Join(ctx.ViolationOffenders, o => o.Fees.ViolationId, vo => vo.ViolationId, (o, vo) => new { Offenders = o, ViolationOffenders = vo }) .Join(ctx.Violations, v => v.ViolationOffenders.ViolationId, vo => vo.ViolationId, (v, vo) => new {