protected override Expression VisitQuerySourceReferenceExpression(QuerySourceReferenceExpression expression) { reduced = false; // :) luceneExpression.AttachIndex(expression.ReferencedQuerySource.ItemType.GetContractId()); luceneExpression.Append(expression.ReferencedQuerySource.ItemName); return(expression); }
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); }