ISqlQuery query = new SqlQuery("SELECT * FROM Customers"); IDataReader reader = query.Execute(); // Returns a reader object with the query results
ISqlQuery query = new SqlQuery("UPDATE Customers SET Name = 'John Doe' WHERE ID = 1"); int rowsAffected = query.ExecuteNonQuery(); // Returns the number of rows affected by the queryPossible library packages that contain ISqlQuery interfaces could be ADO.NET, Entity Framework, or other database-related frameworks or ORM tools.