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

Auto Generation of Interface Proxies? #1104

Open
tippmar opened this issue Aug 24, 2018 · 0 comments
Open

Auto Generation of Interface Proxies? #1104

tippmar opened this issue Aug 24, 2018 · 0 comments

Comments

@tippmar
Copy link

tippmar commented Aug 24, 2018

AutoMapper has a wonderfully useful feature where it can auto-generate a "proxy" class for an interface - allowing you to specify a mapping to an IFoo. AutoMapper generates the proxy on the fly and reuses it on future calls.

Any chance Dapper could be enhanced to do the same thing? I have a zillion private concrete classes implementing my DTO public interfaces, and the only reason those exist is to make Dapper happy - my repositories expose only public interfaces, and it would be a beautiful thing if I could

        return await _dbConn.QueryAsync<IFoo>(query, new {fooId});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant