Last active
December 12, 2017 14:31
-
-
Save lluisfranco/d49a9e7d799d5c9a15e7ee73b11b48f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static List<T> Query<T>(this AdomdConnection conn, string commandText, params object[] parameters) | |
{ | |
var commandTextParameters = ReplaceCommandTextParameters(commandText, parameters); | |
var cmd = new AdomdCommand(commandTextParameters, conn); | |
var dr = cmd.ExecuteReader(); | |
return dr.ToList<T>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment