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

Request: Providing object instance to Dapper #811

Open
ydogus opened this issue Jul 3, 2017 · 0 comments
Open

Request: Providing object instance to Dapper #811

ydogus opened this issue Jul 3, 2017 · 0 comments

Comments

@ydogus
Copy link

ydogus commented Jul 3, 2017

Is it possible to implement a feature to give Dapper the instance which we want to set the properties? I mean, I don't want Dapper to create a new instance for the object when it reads the rows. I want it to let us create and provide the instance.
I need this because I've to use dynamic proxies on those objects. And for performance and memory reasons, it won't be good if I create a new proxy instance for every returned object from Dapper which will just double the total of instances.

I have found an old StackOverflow question and @mgravell mentioned that it is possible to implement.

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

2 participants