Vali-Flow.Sql 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Vali-Flow.Sql --version 1.0.0
                    
NuGet\Install-Package Vali-Flow.Sql -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="Vali-Flow.Sql" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vali-Flow.Sql" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Vali-Flow.Sql" />
                    
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 Vali-Flow.Sql --version 1.0.0
                    
#r "nuget: Vali-Flow.Sql, 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.
#:package Vali-Flow.Sql@1.0.0
                    
#: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=Vali-Flow.Sql&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Vali-Flow.Sql&version=1.0.0
                    
Install as a Cake Tool

Vali-Flow.Sql

SQL query builder that translates ValiFlow<T> filters into parameterized SQL for Dapper / ADO.NET.

Supports SQL Server, PostgreSQL, MySQL, and SQLite dialects.

See the main README for complete documentation and examples.

Installation

dotnet add package Vali-Flow.Sql

Quick Example

using Vali_Flow.Sql.Extensions;
using Vali_Flow.Sql.Dialects;

var filter = new ValiFlow<Order>()
    .EqualTo(x => x.Status, "Active")
    .GreaterThan(x => x.Total, 100m);

var result = filter.ToSql(new PostgreSqlDialect());

var orders = await connection.QueryAsync<Order>(
    $"SELECT * FROM orders WHERE {result.Sql}",
    result.Parameters);

Dialects

  • SqlServerDialect — SQL Server (T-SQL)
  • PostgreSqlDialect — PostgreSQL
  • MySqlDialect — MySQL
  • SqliteDialect — SQLite

Features

  • Parameterized queries (SQL injection safe)
  • SqlQueryBuilder<T> for full SELECT statements with JOIN, GROUP BY, aggregates
  • Dialect-specific parameter prefixes and quoting
  • Compatible with Dapper, ADO.NET, and raw SQL executors

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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.2.0 133 10/7/2026
1.1.1 180 4/15/2026
1.1.0 149 4/14/2026
1.0.0 145 4/12/2026

v1.0.0 — Initial release. Expression-to-SQL translator with dialect support for SQL Server, PostgreSQL, MySQL, and SQLite.