henkmollema / Dapper-FluentMap

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

Fluent map - map results to the same object #98

Closed vvrkumar closed 5 years ago

vvrkumar commented 5 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.