SqlQueryValidator 1.0.1

dotnet add package SqlQueryValidator --version 1.0.1
                    
NuGet\Install-Package SqlQueryValidator -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SqlQueryValidator" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SqlQueryValidator" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="SqlQueryValidator" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SqlQueryValidator --version 1.0.1
                    
#r "nuget: SqlQueryValidator, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SqlQueryValidator@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SqlQueryValidator&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=SqlQueryValidator&version=1.0.1
                    
Install as a Cake Tool

Sql Query Validator


It is a package which help you to validate in-line SQL query in code. By using this, you can easily validate and use the in-line sql query without checking the syntax in different place. It will validate the syntax of your in-line SQL query. Let's see how you can use this tool-

Example: You have written one in-line SQL query like "Select * from abc where id:1". By mistake, you have added colon (:) instead of equal to (=). Next thing, how you can use this method to validate the syntax. Let's see -

using Sql = global::SqlQueryValidator; // add this code in header part

bool status = Sql.SqlQueryValidator.IsSQLQueryValid("SQL Query"); // it will return boolean value true or false. if the syntax will correct then it will return true, otherwise false.

bool status = Sql.SqlQueryValidator.IsSQLQueryValidWithError("SQL Query", out List<string> strings); // it will return Boolean value true or false. if the syntax will correct then it will return true, otherwise false. In the out parameter, you will get the error list of the syntax issue.

Thank You. Happy Coding.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 2,240 5/29/2023
1.0.0 275 5/26/2023