Esempio n. 1
0
        public bool TryEvaluate <T>(string query, SyntaxConfig syntaxConfig, out T result) where T : struct
        {
            if (LiteralEvaluator <T> .IsEvaluable == false)
            {
                result = default;
                return(false);
            }

            return(LiteralEvaluator <T> .TryEvaluate(query, StartPosition, Length,
                                                     syntaxConfig.CultureInfo.NumberFormat, out result));
        }
Esempio n. 2
0
 internal SyntaxConfig Build()
 {
     _syntaxConfig = _syntaxConfig ?? new SyntaxConfig(_keywordCaseSensitive, _columnNameCaseSensitive);
     return(_syntaxConfig);
 }