brucezhang80 / dapper-dot-net

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

Cannot cast to Nullable DataType a simple null value #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce bug:

1. create and open a simple connection
2. execute this sql: connection.ExecuteMapperQuery<DateTime?>("select 
null").First().Should().Be.EqualTo(null);

A invalid cast exception is throwed!

Original issue reported on code.google.com by l...@fewbit.com on 13 Apr 2011 at 9:48

GoogleCodeExporter commented 9 years ago
just committed a fix

Original comment by sam.saff...@gmail.com on 18 Apr 2011 at 6:07