Dapper.Rainbow VS Dapper.Contrib

后端 未结 3 1640
时光说笑
时光说笑 2020-11-30 18:55

Can someone please explain the difference between Dapper.Rainbow vs. Dapper.Contrib?

I mean when do you use SqlMapperExtensions.cs

3条回答
  •  一整个雨季
    2020-11-30 19:33

    Sam describes in details what the difference is in his post - http://samsaffron.com/archive/2012/01/16/that-annoying-insert-problem-getting-data-into-the-db-using-dapper.

    Basically, its the usual not 1 size fits all answer and its up to us to decide which approach to go with based on your needs:

    There are now 2 other APIs you can choose from as well (besides Rainbow) (for CRUD) Dapper.Contrib and Dapper Extensions. I do not think that one-size-fits-all. Depending on your problem and preferences there may be an API that works best for you. I tried to present some of the options. There is no blessed “best way” to solve every problem in the world.

提交回复
热议问题