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

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

Helper method to fill the parameters inside an SQL command.
private ComposeSQLCommand ( SQLiteCommand command, string text, object>.Dictionary parameters ) : void
command System.Data.SQLite.SQLiteCommand The SQL command object to fill. This method modifies it.
text string SQL query, optionnally with @something parameters.
parameters object>.Dictionary Parameters to replace in the SQL query.
Результат void
        private void ComposeSQLCommand(SQLiteCommand command, string text, Dictionary<string, object> parameters)
        {
            command.CommandText = text;
            if (null != parameters)
            {
                foreach (KeyValuePair<string, object> pair in parameters)
                {
                    command.Parameters.AddWithValue(pair.Key, pair.Value);
                }
            }
        }