Tomboi88 / dapper-dot-net

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

Null values from database should overwrite values in object #170

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If I have an object with a Nullable type I would like Dapper to set the value 
to NULL when the object is populated from the database.

I have a constructor that sets a status property to a value of 1. The property 
is a Nullable<int>. If the value is set in the constructor when Dapper hydrates 
the object it will not overwrite the value of 1 with a value of NULL.

Original issue reported on code.google.com by brianhar...@gmail.com on 20 Feb 2014 at 8:42