user3928241
user3928241

Reputation: 163

How to use dapper.fluentmap in Dapper?

Does anyone know or have link in how to use https://github.com/henkmollema/Dapper-FluentMap in my Dapper CRUD?. Right now I am using Dapper.Contrib but we are trying to implement Clean architecture which we remove the Dapper.Contrib in our structure. Now I am trying to use this Dapper-FluentMap to map the properties but there documentation is very poor.

Upvotes: 3

Views: 10686

Answers (2)

Wellspring
Wellspring

Reputation: 1340

After beating my head against a few brick walls, I have established this much as fact (at least as of late 2018, which is after the date of the OP)...

Answering the question "Is FluentMap supposed to work with Dapper.Contrib extensions?", henkmollema (author of Dapper.FluentMap) responds, "Nope, it does not work with Dapper.Contrib".

So there's your answer, user3928241.

However for me as well as for user3928241 and others desperately searching for answers, he adds, "Shameless plug: it does work together with Dommel using the Dapper.FluentMap.Dommel integration component."

YMMV, but I'm pressing on. Going to try Dommel now.

Upvotes: 2

mauridb
mauridb

Reputation: 1569

I've wrote an article and a sample that shows how to use Dapper-FluentMap:

https://medium.com/dapper-net/custom-columns-mapping-1cd45dfd51d6

Upvotes: 7

Related Questions