Using Dapper to map more than 5 types

后端 未结 3 776
野趣味
野趣味 2020-12-04 22:24

I am currently building a SELECT query that joins 12 tables together. I\'ve been using Dapper for all my other queries and it works great. Problem is, the generic methods on

3条回答
  •  半阙折子戏
    2020-12-04 23:16

    This has been answered long time ago, but I would like to add my two cents here. Instead of manually modify Dapper's source code, why don't you just create a poco class with those fields and use your query like a table?

    The mapping would work fine, I know it is a pain also to do that class definition, but seems easier than dealing with later Dapper's updates.

提交回复
热议问题