示例#1
0
 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))));
 }
示例#2
0
 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))));
 }
示例#3
0
 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))));
 }