Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support conversions from db type to string properties #29

Open
dazinator opened this issue Dec 20, 2018 · 1 comment
Open

Support conversions from db type to string properties #29

dazinator opened this issue Dec 20, 2018 · 1 comment

Comments

@dazinator
Copy link
Contributor

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants