Example #1
0
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public virtual void SetPrevious([NotNull] AsyncGroupJoinIncludeContext previous)
 {
     if (_previous != null)
     {
         _previous.SetPrevious(previous);
     }
     else
     {
         _previous = previous;
     }
 }
Example #2
0
        /// <summary>
        ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
        ///     directly from your code. This API may change or be removed in future releases.
        /// </summary>
        public virtual AsyncGroupJoinIncludeContext CreateIncludeContext([NotNull] RelationalQueryContext queryContext)
        {
            var asyncGroupJoinIncludeContext
                = new AsyncGroupJoinIncludeContext(
                      NavigationPath,
                      QuerySourceRequiresTracking,
                      queryContext,
                      _relatedEntitiesLoaderFactories);

            if (_previous != null)
            {
                asyncGroupJoinIncludeContext.SetPrevious(_previous.CreateIncludeContext(queryContext));
            }

            return(asyncGroupJoinIncludeContext);
        }
 public virtual void Initialize([NotNull] RelationalQueryContext queryContext)
 => _currentContext = CreateIncludeContext(queryContext);