private ExecuteSQLAction ( string text, object>.Dictionary |
||
text | string | SQL query, optionnally with @something parameters. |
parameters | object>.Dictionary | Parameters to replace in the SQL query. |
return | void |
private void ExecuteSQLAction(string text, Dictionary<string, object> parameters)
{
using (var command = new SQLiteCommand(GetSQLiteConnection()))
{
try
{
ComposeSQLCommand(command, text, parameters);
command.ExecuteNonQuery();
}
catch (SQLiteException e)
{
Logger.Error(String.Format("Could not execute SQL: {0}; {1}", text, JsonConvert.SerializeObject(parameters)), e);
throw;
}
}
}