예제 #1
0
 protected override Expression VisitQuerySourceReferenceExpression(QuerySourceReferenceExpression expression)
 {
     reduced = false; // :)
     luceneExpression.AttachIndex(expression.ReferencedQuerySource.ItemType.GetContractId());
     luceneExpression.Append(expression.ReferencedQuerySource.ItemName);
     return(expression);
 }
예제 #2
0
        public override void VisitAdditionalFromClause(AdditionalFromClause fromClause, QueryModel queryModel, int index)
        {
            var luceneExpression = new LuceneIndexExpression();

            luceneExpression.AttachIndex(fromClause.ItemType.GetContractId());
            luceneExpression.Append(fromClause.ItemType.GetContractId());
            _queryParts.AddFromPart(luceneExpression);

            fromClause.ItemName = "EventInternal";

            base.VisitAdditionalFromClause(fromClause, queryModel, index);
        }