SqlQueryValidator 1.0.1
dotnet add package SqlQueryValidator --version 1.0.1
NuGet\Install-Package SqlQueryValidator -Version 1.0.1
<PackageReference Include="SqlQueryValidator" Version="1.0.1" />
<PackageVersion Include="SqlQueryValidator" Version="1.0.1" />
<PackageReference Include="SqlQueryValidator" />
paket add SqlQueryValidator --version 1.0.1
#r "nuget: SqlQueryValidator, 1.0.1"
#:package SqlQueryValidator@1.0.1
#addin nuget:?package=SqlQueryValidator&version=1.0.1
#tool nuget:?package=SqlQueryValidator&version=1.0.1
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 | Versions 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. |
-
net7.0
- Microsoft.SqlServer.DacFx.x64 (>= 150.5282.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.