예제 #1
0
        public void CanExecuteUntypedExpression()
        {
            Document <Entity>().With(x => x.Property);

            var queryProvider = new QueryProvider(
                (DocumentSession)store.OpenSession(),
                store.Configuration.GetOrCreateDesignFor(typeof(Entity)));

            queryProvider.ExecuteEnumerable <object>(
                Expression.Call(
                    Expression.Constant(new object()),
                    typeof(Queryable).GetMethod("Where"),
                    Expression.Lambda(
                        Expression.MakeBinary(
                            ExpressionType.Equal,
                            Expression.Constant(1),
                            Expression.Constant(1)))));
        }