Пример #1
0
        public IStatementResult Run(string statement, object parameters)
        {
            if (parameters is IDictionary <string, object> par)
            {
                return(Run(statement, par));
            }

            Console.WriteLine(statement);
            Console.WriteLine("params: {0}:{1}", parameters.ToString());

            return(NeoSession.Run(statement, parameters));
        }
Пример #2
0
        public IStatementResult Run(string statement, IDictionary <string, object> parameters)
        {
            string st = statement;

            if (parameters != null)
            {
                foreach (var par in parameters)
                {
                    st = st.Replace("{" + par.Key + "}", JsonConvert.SerializeObject(par.Value));
                }
            }

            Console.WriteLine(st);
            return(NeoSession.Run(statement, parameters));
        }
Пример #3
0
 public IStatementResult Run(string statement)
 {
     Console.WriteLine(statement);
     return(NeoSession.Run(statement));
 }
Пример #4
0
 public IStatementResult Run(Statement statement, TransactionConfig txConfig)
 {
     Console.WriteLine("Run");
     return(NeoSession.Run(statement, txConfig));
 }
Пример #5
0
 public IStatementResult Run(string statement, IDictionary <string, object> parameters, TransactionConfig txConfig)
 {
     Console.WriteLine("Run");
     return(NeoSession.Run(statement, parameters, txConfig));
 }