Esempio n. 1
0
        //public CEPExpression<QueryResultType> Query<IndexType, QueryResultType>(string DatabaseName,
        //    Func<IndexType, QueryResultType, QueryResultType> selectorFunction)
        //{
        //    var Block = BlockFactory.CreateQueryBlock<IndexType, QueryResultType, QueryResultType>(selectorFunction,DatabaseName,name + "Query");
        //    return CreateChildExpr<QueryResultType>(this, Block, "Query.");
        //}
        public ICEPExpression <QueryResultType> Query <IndexType, DataType, QueryResultType>(string DatabaseName,
                                                                                             Func <IndexType, DataType, QueryResultType> selectorFunction)
        {
            QueryBlock <IndexType, DataType, QueryResultType> block = blockFactory.CreateQueryBlock(selectorFunction, DatabaseName, name + "Query");

            return(CreateChildExpr <QueryResultType>(this, block, "Query."));
        }