Skip to content

Instantly share code, notes, and snippets.

@ssougnez
Created June 8, 2018 13:41
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 ssougnez/c6e8d1c3df2026e81233cb0e41563491 to your computer and use it in GitHub Desktop.
Save ssougnez/c6e8d1c3df2026e81233cb0e41563491 to your computer and use it in GitHub Desktop.
var result = (await connection.QueryAsync(sql,
new Type[] { typeof(A), typeof(B), typeof(C), typeof(D), typeof(E), typeof(F), typeof(G), typeof(H), typeof(I) },
objects =>
{
// Distributing logic here
})).FirstOrDefault();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment