Closed GoogleCodeExporter closed 8 years ago
What data-type is RTP_FLAG in the database, and what data-type is the property?
Original comment by marc.gravell
on 16 Jun 2011 at 12:09
I'm so sorry,The data-type in the database is bit,but the data-type in the
model class is int.
Thank you again!
Original comment by hui.chen...@gmail.com
on 17 Jun 2011 at 3:56
Dapper tries to map *very* directly, to avoid having to compensate in 27
directions. If the data is a bit in the database, it should be a `bool` in your
code. That will also have the positive effect that you can't use values in your
model that can't be stored.
Original comment by marc.gravell
on 17 Jun 2011 at 5:07
this is by-design. Dapper expects the data types in the model to match
*exactly* to the data types in the DB
Original comment by sam.saff...@gmail.com
on 11 Jul 2011 at 11:31
Original issue reported on code.google.com by
hui.chen...@gmail.com
on 16 Jun 2011 at 11:56