Ejemplo n.º 1
0
        public override ResultOperatorBase Clone([NotNull] CloneContext cloneContext)
        {
            Check.NotNull(cloneContext, nameof(cloneContext));

            var includeResultOperator = new IncludeResultOperator(_navigationPropertyPath);

            if (_chainedNavigationProperties != null)
            {
                includeResultOperator.AppendToNavigationPath(_chainedNavigationProperties);
            }

            return(includeResultOperator);
        }
Ejemplo n.º 2
0
        protected override ResultOperatorBase CreateResultOperator(ClauseGenerationContext clauseGenerationContext)
        {
            var navigationPropertyPath
                = Source.Resolve(
                      _navigationPropertyPathLambda.Parameters[0],
                      _navigationPropertyPathLambda.Body,
                      clauseGenerationContext);

            var includeResultOperator = new IncludeResultOperator(navigationPropertyPath);

            clauseGenerationContext.AddContextInfo(this, includeResultOperator);

            return(includeResultOperator);
        }