Suppose your POCO object has a string property, but the value returned by the stored procedure is a different type, like int. At the moment this throws an exception saying int cannot be converted to string property. Would be good to handle the conversion to string automatically if there is isn't a "loss" of information caused by the conversion (other than type information).
Suppose your POCO object has a string property, but the value returned by the stored procedure is a different type, like
int
. At the moment this throws an exception sayingint
cannot be converted tostring
property. Would be good to handle the conversion to string automatically if there is isn't a "loss" of information caused by the conversion (other than type information).