Example #1
0
        public SingleWithOneIncludedQuerySplit <T, TId, TChild, TGrandChild, TGrandChildId> ThenIncludeOne <TGrandChild, TGrandChildId>(
            Expression <Func <TChild, TGrandChild> > selectFunc,
            Expression <Func <TGrandChild, TGrandChildId> > idExpression)
        {
            var child = new SingleWithOneIncludedQuerySplit <T, TId, TChild, TGrandChild, TGrandChildId>(this, selectFunc, idExpression);

            return(ThenInclude(child));
        }
        public SingleWithOneIncludedQuerySplit <T, TId, TChild, TGrandChild, TGrandChildId> ThenIncludeOne <TGrandChild, TGrandChildId>(
            Expression <Func <TChild, TGrandChild> > selectFunc,
            Expression <Func <TGrandChild, TGrandChildId> > idExpression,
            string?idPropertyName = null)
        {
            var child = new SingleWithOneIncludedQuerySplit <T, TId, TChild, TGrandChild, TGrandChildId>(this, selectFunc, idExpression, idPropertyName);

            Children.Add(child);

            return(child);
        }
Example #3
0
        public SingleWithOneIncludedQuerySplit <T, TId, TPrevious, TChild, TChildId> ThenIncludeOneForParent <TGrandChild, TGrandChildId>(
            Expression <Func <TChild, TGrandChild> > selectFunc,
            Expression <Func <TGrandChild, TGrandChildId> > idExpression)
        {
            var child = new SingleWithOneIncludedQuerySplit <T, TId, TChild, TGrandChild, TGrandChildId>(this, selectFunc, idExpression);

            child.SkipParent = true;
            ThenInclude(child);

            return(this);
        }
        public SingleWithMultipleIncludedQuerySplit <T, TId, TPrevious, TChild, TChildId> ThenIncludeOneForParent <TGrandChild, TGrandChildId>(
            Expression <Func <TChild, TGrandChild> > selectFunc,
            Expression <Func <TGrandChild, TGrandChildId> > idExpression,
            string?idPropertyName = null)
        {
            var child = new SingleWithOneIncludedQuerySplit <T, TId, TChild, TGrandChild, TGrandChildId>(this, selectFunc, idExpression, idPropertyName);

            child.SkipParent = true;
            Children.Add(child);

            return(this !);
        }