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

Document AllowUserVariables in exception message #206

Closed
bgrainger opened this issue Mar 23, 2017 · 0 comments
Closed

Document AllowUserVariables in exception message #206

bgrainger opened this issue Mar 23, 2017 · 0 comments
Assignees

Comments

@bgrainger
Copy link
Member

bgrainger commented Mar 23, 2017

When AllowUserVariables is false, and the user uses a variable, the connector will throw a "parameter must be defined" exception.

This behaviour frequently confuses people; see http://stackoverflow.com/questions/9186983/non-parameter-sql-variables-with-mysql-connector-net-and-dapper and all the links on #194.

Add some explanatory text to the exception message that tells users how to recover from this problem so that they don't have to Google it.

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