public static bool SequenceEqual <TSource>(this IQueryable <TSource> source1, IEnumerable <TSource> source2) { Check.Source1AndSource2(source1, source2); return(source1.Provider.Execute <bool>(StaticCall(MakeGeneric(MethodBase.GetCurrentMethod(), typeof(TSource)), source1.Expression, Expression.Constant(source2)))); }
public static IQueryable <TSource> Union <TSource>(this IQueryable <TSource> source1, IEnumerable <TSource> source2, IEqualityComparer <TSource> comparer) { Check.Source1AndSource2(source1, source2); return(source1.Provider.CreateQuery <TSource>(StaticCall(MakeGeneric(MethodBase.GetCurrentMethod(), typeof(TSource)), source1.Expression, Expression.Constant(source2), Expression.Constant(comparer)))); }
public static IQueryable <TSource> Intersect <TSource>(this IQueryable <TSource> source1, IEnumerable <TSource> source2) { Check.Source1AndSource2(source1, source2); return(source1.Provider.CreateQuery <TSource>(StaticCall(MakeGeneric(MethodBase.GetCurrentMethod(), typeof(TSource)), source1.Expression, Expression.Constant(source2)))); }