We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 336e9cf + 27a742f commit d6e80a0Copy full SHA for d6e80a0
README.md
@@ -34,10 +34,9 @@ public class MyClass
34
public bool Enabled { get; set; }
35
}
36
37
-//ToMyClass() method is generated at compile time
38
-List<MyClass> result = dbconnection.ExecuteReader("SELECT * FROM MyTable").ToMyClass();
+var dataReader = new SqlCommand("SELECT * FROM MyTable", connection).ExecuteReader();
39
40
-//"ExecuteReader" is just a helper method from Dapper ORM, you're free to use other ways to create a datareader
+List<MyClass> results = dataReader.ToMyClass(); // "ToMyClass" method is generated at compile time
41
```
42
43
Some notes for the above
0 commit comments