public HqlGeneratorExpressionVisitor(VisitorParameters parameters) { _functionRegistry = parameters.SessionFactory.Settings.LinqToHqlGeneratorsRegistry; _parameters = parameters; _nullableExpressionDetector = new NullableExpressionDetector(_parameters.SessionFactory, _functionRegistry); }