public static IEnumerable <TResult> Query <TSource, TInner, TResult>(this IEnumerable <TSource> enumerable, string sql, IEnumerable <TInner> inner) { Debug.Assert(enumerable != null); Debug.Assert(inner != null); Debug.Assert(string.IsNullOrEmpty(sql) == false, "Sql cannot be empty"); JoinQuery <TSource, TInner, TResult> query = new JoinQuery <TSource, TInner, TResult>(sql); query.Compile(); return(query.Evaluate(enumerable, inner)); }
public ScalarJoinQuery(string sql) : base(sql) { _query = new JoinQuery <TSource, TInner, object>(sql); }