henkmollema / Dapper-FluentMap

Provides a simple API to fluently map POCO properties to database columns when using Dapper.
MIT License
427 stars 86 forks source link

Fluent map - map results to the same object #98

Closed vvrkumar closed 4 years ago

vvrkumar commented 4 years ago

Hello There, I am new to the FluentMapper.

I have created a mapper class which maps 5 different columns to the object's properties. But one of my query returns only two columns and another query returns all 5 columns. Should i create two different mappers with two different custom domain classes?

If the query is not returning a column but the mapper tries to map to a property cause any issues?

please suggest.