henkmollema / Dommel

CRUD operations with Dapper made simple.
MIT License
611 stars 99 forks source link

Automatic multi mapping N-hierarchy #289

Closed rafaelsakai closed 1 year ago

rafaelsakai commented 1 year ago

Hi! How can I create a automatic multi mapping with this hierarchy:

Class -> SubClass -> SubClassOfSubClass

With one level of hierarchy works well:

var class = product.Get<Class, SubClass, Class>(1);

But with one more level of hierarchy doesn't work, the SubClassOfSubClass cames null:

var class = product.Get<Class, SubClass, SubClassOfSubClass, Class>(1);

Tks

henkmollema commented 1 year ago

This is not supported in Dommel and probably will never be.