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)); }
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)); }
public IStatementResult Run(string statement) { Console.WriteLine(statement); return(NeoSession.Run(statement)); }
public IStatementResult Run(Statement statement, TransactionConfig txConfig) { Console.WriteLine("Run"); return(NeoSession.Run(statement, txConfig)); }
public IStatementResult Run(string statement, IDictionary <string, object> parameters, TransactionConfig txConfig) { Console.WriteLine("Run"); return(NeoSession.Run(statement, parameters, txConfig)); }