CommandAsSql
CommandAsSql copied to clipboard
It's a simple extension method which enables you to write out a parsed SqlCommand object with their parameters and containing values
Added support for using the extension with the Microsoft.Data.SqlClient library. Did a little rework of the solution to separate the System support from the Microsoft support.
Shouldn't GUID values be enclosed in quotes?
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...
error in the function ParameterValueForSQL, if the value is null, there should be a test on the value.