Skip to content

Instantly share code, notes, and snippets.

@lluisfranco
Last active December 12, 2017 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lluisfranco/d49a9e7d799d5c9a15e7ee73b11b48f6 to your computer and use it in GitHub Desktop.
Save lluisfranco/d49a9e7d799d5c9a15e7ee73b11b48f6 to your computer and use it in GitHub Desktop.
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