https://github.com/jphellemons/commandassql
It's a simple extension method which enables you to write out a parsed SqlCommand object with their parameters and containing values
https://github.com/jphellemons/commandassql
netstandard nuget-package sqlcommand
Last synced: about 1 month ago
JSON representation
It's a simple extension method which enables you to write out a parsed SqlCommand object with their parameters and containing values
- Host: GitHub
- URL: https://github.com/jphellemons/commandassql
- Owner: jphellemons
- License: mit
- Created: 2017-08-25T14:02:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-30T20:13:01.000Z (9 months ago)
- Last Synced: 2025-04-11T22:16:50.730Z (about 1 month ago)
- Topics: netstandard, nuget-package, sqlcommand
- Language: C#
- Homepage:
- Size: 124 KB
- Stars: 18
- Watchers: 3
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CommandAsSql
[](https://github.com/jphellemons/CommandAsSql/actions/workflows/dotnet-desktop.yml).Net standard 2.0 Nuget package. Extension method for SqlCommand to display all parameters as inline SQL. Output is a string which can be copy pasted in a DB management tool.
It's based on some code from StackOverflow and enhanced for table value parameters.
Please send pull-requests.## Install in packagemanager:
> Install-Package CommandAsSql
## Install from CLI:
> dotnet add package CommandAsSql
## License
See License.md for the MIT License
## Other
Can be found on Nuget: https://www.nuget.org/packages/CommandAsSql/
Most code is from Flapper https://stackoverflow.com/users/391383/flapper
and his StackOverflow answer: https://stackoverflow.com/a/4146573/169714