GraphView.TranslateMatchClauseVisitor.Invoke C# (CSharp) Method

Invoke() public method

public Invoke ( WSqlFragment node ) : void
node WSqlFragment
return void
        public void Invoke(WSqlFragment node)
        {
            node.Accept(this);
        }

Usage Example

Beispiel #1
0
        /// <summary>
        /// Returns the translated T-SQL script. For testing only.
        /// </summary>
        /// <returns>The translated T-SQL script</returns>
        internal string GetTsqlQuery()
        {
            var sr = new StringReader(CommandText);
            var parser = new GraphViewParser();
            IList<ParseError> errors;
            var script = parser.Parse(sr, out errors) as WSqlScript;
            if (errors.Count > 0)
                throw new SyntaxErrorException(errors);

            if (errors.Count > 0)
                throw new SyntaxErrorException(errors);

            // Translation and Check CheckInvisibleColumn
            using (SqlTransaction tx = Connection.BeginTransaction())
            {
                var visitor = new TranslateMatchClauseVisitor(tx);
                visitor.Invoke(script);

                return script.ToString();
            }
        }
All Usage Examples Of GraphView.TranslateMatchClauseVisitor::Invoke