Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Select in SqlSet without specifying a result type #23

Closed
maxtoroq opened this issue Apr 3, 2014 · 0 comments
Closed

Support Select in SqlSet without specifying a result type #23

maxtoroq opened this issue Apr 3, 2014 · 0 comments
Assignees
Milestone

Comments

@maxtoroq
Copy link
Owner

maxtoroq commented Apr 3, 2014

Currently, the API assumes that if you call Select you want to project to a different type. You can simply pass the same type to work around it:

db.From<Product>("products")
  .Select<Product>("id, name") /* map only these properties */

However, if you are working with an untyped set, you cannot call Select and stay untyped (using DynamicMapper), you have to pass a result type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant