itsmebhavin / dapper-dot-net

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

DateTime.MinValue in date column throws SqlDateTime overflow exception #188

Open Inrego opened 5 years ago

Inrego commented 5 years ago

Granted, this issue is most likely related to https://github.com/itsmebhavin/dapper-dot-net/issues/157

But it's a real issue for me. Is there any workaround? I don't want to add TypeMap for DateTime which changes handling of all DateTime properties, since some map to date columns, while others map to datetime columns.

I was thinking something like an attribute on the properties to mark them as date type?