You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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});
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: