public IASTNode Translate(ISessionFactoryImplementor sessionFactory, bool filter) { var requiredHqlParameters = new List <NamedParameterDescriptor>(); var querySourceNamer = new QuerySourceNamer(); var queryModel = NhRelinqQueryParser.Parse(_expression); var visitorParameters = new VisitorParameters(sessionFactory, _constantToParameterMap, requiredHqlParameters, querySourceNamer); ExpressionToHqlTranslationResults = QueryModelVisitor.GenerateHqlQuery(queryModel, visitorParameters, true); ParameterDescriptors = requiredHqlParameters.AsReadOnly(); return(ExpressionToHqlTranslationResults.Statement.AstNode); }
public IASTNode Translate(ISessionFactoryImplementor sessionFactory) { var requiredHqlParameters = new List<NamedParameterDescriptor>(); var querySourceNamer = new QuerySourceNamer(); var queryModel = NhRelinqQueryParser.Parse(_expression); var visitorParameters = new VisitorParameters(sessionFactory, _constantToParameterMap, requiredHqlParameters, querySourceNamer); ExpressionToHqlTranslationResults = QueryModelVisitor.GenerateHqlQuery(queryModel, visitorParameters, true); ParameterDescriptors = requiredHqlParameters.AsReadOnly(); return ExpressionToHqlTranslationResults.Statement.AstNode; }