Consider the query
var query = from A in _context.A.AsExpandable().Where(condition) let B = _context.B .Where(a=> a