diff --git a/README.md b/README.md index e4981cd..ab78f76 100644 --- a/README.md +++ b/README.md @@ -34,10 +34,9 @@ public class MyClass public bool Enabled { get; set; } } -//ToMyClass() method is generated at compile time -List result = dbconnection.ExecuteReader("SELECT * FROM MyTable").ToMyClass(); +var dataReader = new SqlCommand("SELECT * FROM MyTable", connection).ExecuteReader(); -//"ExecuteReader" is just a helper method from Dapper ORM, you're free to use other ways to create a datareader +List results = dataReader.ToMyClass(); // "ToMyClass" method is generated at compile time ``` Some notes for the above