Git Product home page Git Product logo

commandassql's Introduction

CommandAsSql

.NET Core Desktop

.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

database icon

commandassql's People

Contributors

birbilis avatar dependabot[bot] avatar jphellemons avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

commandassql's Issues

null values

error in the function ParameterValueForSQL, if the value is null,

there should be a test on the value.

date handling

Do you feel the
retval = "'" + sp.Value.ToString().Replace("'", "''") + "'";
is correct for DateTime?

I'm getting localized Dates in Greek when I use it via CommandAsSql library.

In the library code it also uses later on sb.Append("'").Append(Convert.ToDateTime(dr[colIndex]).ToString("yyyy-MM-dd HH:mm")).Append("'");
for handling structure types which seems more logical to use everywhere

I mean the .ToString("yyyy-MM-dd HH:mm") - not sure about the DateTimeOffset and DateTime2, guess for those too

Travis CI build keeps failing

The .travis.yml file is broken. It needs to build, (run tests) and if succeeded, pack and push to nuget.
It has several issues.
one of them: Cannot open assembly 'nuget.exe': No such file or directory.
And I have tried several things as you can see in the commits. So I could use some help here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.