SqlFluentBuilder 1.0.0

dotnet add package SqlFluentBuilder --version 1.0.0                
NuGet\Install-Package SqlFluentBuilder -Version 1.0.0                
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="SqlFluentBuilder" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SqlFluentBuilder --version 1.0.0                
#r "nuget: SqlFluentBuilder, 1.0.0"                
#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.
// Install SqlFluentBuilder as a Cake Addin
#addin nuget:?package=SqlFluentBuilder&version=1.0.0

// Install SqlFluentBuilder as a Cake Tool
#tool nuget:?package=SqlFluentBuilder&version=1.0.0                

SQL Fluent Builder

Welcome to the SQL fluent builder. This package aims to provide a straightforward light-weight class to help you write your SQL queries within .NET. The main goal is to buy you time while writing your SQL strings. You will benefit from data conversion to SQL string, formatting, assured correctness on SQL statements and also the fluent way of writing SQL. If you don`t want to put your queries in static files, you are in the right place.

In this brief README we can give you a glimpse of what kind of complexity you might achieve using this package. Here follows an example of a generic complex query

Complex query code example

Once the ToSql() method is called, it gives us the result string which turns out to be the following SQL string

Complex query sql example

Note that the line breaks in this image is merely illustrative. The final result is the same but without line breaks.

Ok, that's one SELECT example. What about the other statements? Well, we have support to all of them, even for SELECT INTO statements, ANY, ALL, EXISTS, etc. We cover all possibilities in our Wiki, go check it out.

Installing the package

To install the package latest version in your project just run the .NET CLI command in you terminal

dotnet add package sql-fluent-builder

You may also want to install a specific version of the package. In that case you can run

dotnet add package sql-fluent-builder -v <VERSION_NUMBER>

where <VERSION_NUMBER> should be replaced by the version number required, e.g. 1.0.1.

Or you can add it through your preferred IDE tools. Feel free to do whatever suits you better.

Documentation

In the project's Wiki we provide a complete documentation on how to use the package, all its features, extension methods and more.

Contact, Suggestions and Help

If you have any concern, advice or suggestion or even want to collaborate directly in the code, you can reach me out personally through the email jvbvanazzi@gmail.com.

As for bug report, we kindly ask you to open an Issue on GitHub.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

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.0 213 10/17/2022

This is the first release of the package containing all possible SQL commands and clauses that you can use for writing SQL queries fluently in C#.