abe545 / CodeOnlyStoredProcedures

A library for easily calling Stored Procedures in .NET using only code (no xml or gui).
MIT License
4 stars 3 forks source link

Dynamic result syntax will store DBNull when value is null, instead of a reasonable property value #57

Closed abe545 closed 8 years ago

abe545 commented 8 years ago

The DBType of the column is available, it should be used instead, to create a reasonable default value.

abe545 commented 8 years ago

This is code that demonstrates the issue:

IEnumerable<dynamic> rows = db.Execute().usp_GetRows();