示例#1
0
        public static IRepositoryQuery <TChild> ParentQuery <TChild, TParent>(this IRepositoryQuery <TChild> query, RepositoryQueryDescriptor <TParent> parentQuery) where TChild : class where TParent : class
        {
            if (parentQuery == null)
            {
                throw new ArgumentNullException(nameof(parentQuery));
            }

            return(query.BuildOption(ParentQueryKey, parentQuery.Configure()));
        }