From 27a742fdac946db2f5e970c889f9b8fce331f728 Mon Sep 17 00:00:00 2001 From: Alexander Yumashev <33555768+alex-jitbit@users.noreply.github.com> Date: Fri, 5 May 2023 20:14:14 +0300 Subject: [PATCH] Update README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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