Srini-komman / dapper-dot-net

Automatically exported from code.google.com/p/dapper-dot-net
Other
0 stars 0 forks source link

Support for customizable data conversion (type coercion) #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I posted a question on SO on this topic:

http://stackoverflow.com/q/5898988/64096

Basically what I need is to specify to Dapper how to convert from database data 
to strong typed data.
Alternatively, it would also suffice to have Dapper set a private field or 
property on the data object so that I can implement data conversion within the 
data object (as suggested by Marc Gravell).

The second option is probably what I would use with Linq2Sql.

Original issue reported on code.google.com by marnixva...@gmail.com on 9 May 2011 at 10:06

GoogleCodeExporter commented 8 years ago
non-public properties were already there; the system now also supports public 
and non-public fields, for greater flexibility - but ONLY as a fallback after 
properties. Properties always win, then fields.

Original comment by marc.gravell on 9 May 2011 at 11:27