Skip to content

Selecting primitive types #14

Answered by maxtoroq
dplaskon asked this question in Q&A
Discussion options

You must be logged in to vote

Currently, you have to explicitly provide a mapping delegate, otherwise it asumes you want to map columns to properties of the type parameter (String on this case):

IEnumerable<string> names = conn.Map<string>(query, r => r.GetString(0));

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by maxtoroq
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #14 on December 08, 2020 23:26.