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

Better exception message when parameter isn't supported #925

Closed
bgrainger opened this issue Jan 12, 2021 · 1 comment
Closed

Better exception message when parameter isn't supported #925

bgrainger opened this issue Jan 12, 2021 · 1 comment

Comments

@bgrainger
Copy link
Member

From PomeloFoundation/Pomelo.EntityFrameworkCore.MySql#1287 (comment)

As per #410 (comment), unsupported parameter value types cause a NotSupportedException to be thrown:

throw new NotSupportedException("Parameter type {0} (DbType: {1}) not currently supported. Value: {2}".FormatInvariant(Value.GetType().Name, DbType, Value));

A documentation page explaining this in more detail should be created, and the exception message updated with a quick description of the solution (call .ToString()) and a link to the documentation.

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

No branches or pull requests

1 participant