예제 #1
0
        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));
        }
예제 #2
0
 public ScalarJoinQuery(string sql)
     : base(sql)
 {
     _query = new JoinQuery <TSource, TInner, object>(sql);
 }