EFCore-FluentStoredProcedure icon indicating copy to clipboard operation
EFCore-FluentStoredProcedure copied to clipboard

Support conversions from db type to string properties

Open dazinator opened this issue 5 years ago • 1 comments

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).

dazinator avatar Dec 20 '18 10:12 dazinator

I can look into this, or if you want to take it on feel free to make a pull request.

snickler avatar Dec 21 '18 13:12 snickler