public BusinessIncludableQuery(
     BusinessQuery <TCollection, TReadOnlyCollection, TObject, TEntry, TKey> businessQuery,
     IIncludableQueryable <TEntry, TProperty> query
     ) : base(businessQuery.BusinessQueryContext, query)
 {
     _includableQueryable = query;
 }
Ejemplo n.º 2
0
 public BusinessOrderedQuery(
     BusinessQuery<TCollection, TReadOnlyCollection, TObject, TEntry, TKey> businessQuery,
     IOrderedQueryable<TEntry> query
     ) : base(businessQuery.BusinessQueryContext, query)
 {
     _orderedQueryable = query;
 }
        ////
        //// Summary:
        ////     Applies an accumulator function over a sequence. The specified seed value is
        ////     used as the initial accumulator value, and the specified function is used to
        ////     select the result value.
        ////
        //// Parameters:
        ////   source:
        ////     A sequence to aggregate over.
        ////
        ////   seed:
        ////     The initial accumulator value.
        ////
        ////   func:
        ////     An accumulator function to invoke on each element.
        ////
        ////   selector:
        ////     A function to transform the final accumulator value into the result value.
        ////
        //// Type parameters:
        ////   TSource:
        ////     The type of the elements of source.
        ////
        ////   TAccumulate:
        ////     The type of the accumulator value.
        ////
        ////   TResult:
        ////     The type of the resulting value.
        ////
        //// Returns:
        ////     The transformed final accumulator value.
        ////
        //// Exceptions:
        ////   T:System.ArgumentNullException:
        ////     source or func or selector is null.
        //public BusinessQuery<TResult> Aggregate<TAccumulate, TResult>(TAccumulate seed, Expression<Func<TAccumulate, TEntry, TAccumulate>> func, Expression<Func<TAccumulate, TResult>> selector)
        //{
        //    return new BusinessQuery<TResult>( query.Aggregate(seed, func, selector));
        //}

        //
        // Parameters:

        //   element:
        //
        // Type parameters:
        //   TSource:
        //public BusinessQuery<TCollection, TReadOnlyCollection, TObject, TEntry, TKey> Append(TEntry element)
        //{
        //    Query = Query.Append(element);
        //    return this;
        //}

        //
        // Summary:
        //     Concatenates two sequences.
        //
        // Parameters:
        //   first:
        //     The first sequence to concatenate.
        //
        //   second:
        //     The sequence to concatenate to the first sequence.
        //
        // Type parameters:
        //   TSource:
        //     The type of the elements of the input sequences.
        //
        // Returns:
        //     An System.Collections.Generic.IEnumerable`1 that contains the concatenated elements
        //     of the two input sequences.
        //
        // Exceptions:
        //   T:System.ArgumentNullException:
        //     first or second is null.
        public BusinessQuery <TCollection, TReadOnlyCollection, TObject, TEntry, TKey> Concat(BusinessQuery <TCollection, TReadOnlyCollection, TObject, TEntry, TKey> second)
        {
            Query = Query.Concat(second.Query);
            return(this);
        }
 //
 // Summary:
 //     Produces the set union of two sequences by using a specified System.Collections.Generic.IEqualityComparer`1.
 //
 // Parameters:
 //   first:
 //     An System.Collections.Generic.IEnumerable`1 whose distinct elements form the
 //     first set for the union.
 //
 //   second:
 //     An System.Collections.Generic.IEnumerable`1 whose distinct elements form the
 //     second set for the union.
 //
 //   comparer:
 //     The System.Collections.Generic.IEqualityComparer`1 to compare values.
 //
 // Type parameters:
 //   TEntry:
 //     The type of the elements of the input sequences.
 //
 // Returns:
 //     An System.Collections.Generic.IEnumerable`1 that contains the elements from both
 //     input sequences, excluding duplicates.
 //
 // Exceptions:
 //   T:System.ArgumentNullException:
 //     first or second is null.
 public BusinessQuery <TCollection, TReadOnlyCollection, TObject, TEntry, TKey> Union(BusinessQuery <TCollection, TReadOnlyCollection, TObject, TEntry, TKey> second, IEqualityComparer <TEntry> comparer)
 {
     Query = Query.Union(second.Query, comparer);
     return(this);
 }