Exemple #1
0
        private void ExecuteRule(IDbConnection connection, IRule rule)
        {
            IDbCommand command = connection.CreateCommand();
            command.CommandText = rule.Query;
            using (IDataReader reader = command.ExecuteReader())
            {
                while (reader.Read())
                {
                    _results.Add(rule.Import(reader));
                }

                reader.Close();
            }
        }