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

Query: Clear DbCommand parameters so that FromSql parameters can be u… #6363

Merged
merged 1 commit into from
Aug 19, 2016

Conversation

smitpatel
Copy link
Contributor

Resolves #6249
The issue: When DbParameter added to DbCommand the parameter is associated with command's DbParameterCollection. When command is disposed the association does not go away. Therefore using the same parameter in another command (different command or instance) throws exception.
The fix: Once we have run the command, clear the parameters for it so that same DbParameters can be added to other commands.

@maumar
Copy link
Contributor

maumar commented Aug 18, 2016

:shipit:

@smitpatel smitpatel force-pushed the fromsql6249 branch 2 times, most recently from 10ea80d to bcfab03 Compare August 19, 2016 00:28
@smitpatel
Copy link
Contributor Author

Updated.
@maumar - Can you review again?

@maumar
Copy link
Contributor

maumar commented Aug 19, 2016

:shipit:

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

Successfully merging this pull request may close these issues.

3 participants