CmisSync.Lib.Database.Database.ExecuteSQLFunction C# (CSharp) Метод

ExecuteSQLFunction() приватный Метод

Helper method to execute an SQL command that returns something.
private ExecuteSQLFunction ( string text, object>.Dictionary parameters ) : object
text string SQL query, optionnally with @something parameters.
parameters object>.Dictionary Parameters to replace in the SQL query.
Результат object
        private object ExecuteSQLFunction(string text, Dictionary<string, object> parameters)
        {
            using (var command = new SQLiteCommand(GetSQLiteConnection()))
            {
                try
                {
                    ComposeSQLCommand(command, text, parameters);
                    return command.ExecuteScalar();
                }
                catch (SQLiteException e)
                {
                    Logger.Error(String.Format("Could not execute SQL: {0}; {1}", text, JsonConvert.SerializeObject(parameters)), e);
                    throw;
                }
            }
        }