Skip to content

Request: Providing object instance to Dapper #811

@ydogus

Description

@ydogus

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions