snickler / EFCore-FluentStoredProcedure

EFCore Extension that allows a means to map a stored procedure to a class, fluently.
MIT License
178 stars 34 forks source link

Support conversions from db type to string properties #29

Open dazinator opened 5 years ago

dazinator commented 5 years ago

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

snickler commented 5 years ago

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