private IAsyncEnumerable <TOut> CreateTrackingEnumerable() { return(_grouping.Select(result => { if (result != null) { for (var i = 0; i < _entityTrackingInfos.Count; i++) { var entity = _entityAccessors[i](result as TIn); if (entity != null) { _queryContext.QueryBuffer .StartTracking(entity, _entityTrackingInfos[i]); } } } return result; })); }