DbEasy 1.4.0

dotnet add package DbEasy --version 1.4.0
                    
NuGet\Install-Package DbEasy -Version 1.4.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="DbEasy" Version="1.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DbEasy" Version="1.4.0" />
                    
Directory.Packages.props
<PackageReference Include="DbEasy" />
                    
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 DbEasy --version 1.4.0
                    
#r "nuget: DbEasy, 1.4.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 DbEasy@1.4.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=DbEasy&version=1.4.0
                    
Install as a Cake Addin
#tool nuget:?package=DbEasy&version=1.4.0
                    
Install as a Cake Tool

📦 DbEasy

Version: 1.4.0

NuGet stable NuGet prerelease NuGet Downloads License: MIT

DbEasy is a Lightweight, secure and validated SQL helper for .NET.

It simplifies ADO.NET without abstracting SQL away.

🚀 Overview

DbEasy simplifies SQL execution while providing built-in validation and security features.

It focuses on:

⚡ Lightweight SQL access

🔐 SQL injection protection

✅ SQL parameter validation

📋 Logging & warnings

🧠 Safe Mode enabled by default


📦 Installation

dotnet add package DbEasy

or via NuGet Package Manager:

Install-Package DbEasy

⚡ Quick Start

using var connection =
    new SqlConnection(connectionString);

var users = connection.Query<User>(
    "SELECT * FROM Users WHERE Id = @Id",
    new
    {
        Id = 1
    });

🔐 SQL Parameter Validation

DbEasy automatically validates SQL parameters before execution.

✅ Missing Parameters Detection

db.Query<User>(
    "SELECT * FROM Users WHERE Id = @Id");

Result:

SQL parameters are required but none were provided.

⚠️ Unused Parameters Warning

db.Query<User>(
    "SELECT * FROM Users WHERE Id = @Id",
    new
    {
        Id = 1,
        Username = "ammar"
    });
[DbEasy WARNING] Unused SQL parameter detected: 'Username'

⚠️ Null Parameter Warning

db.Query<User>(
    "SELECT * FROM Users WHERE Name = @Name",
    new
    {
        Name = (string?)null
    });

❌ Unsupported Parameter Types

db.Query<User>(
    "SELECT * FROM Users WHERE Data = @Data",
    new
    {
        Data = new User()
    });

Result:

Unsupported SQL parameter type: 'User'

🔐 Safe Mode

Safe Mode is enabled by default.

DbEasyOptions.SafeModeEnabled = true;

📋 Built-in Validation Pipeline

DbEasy automatically executes:

✔ SQL injection validation

✔ Missing parameter validation

✔ Unused parameter validation

✔ Type validation

✔ Null validation

✨ Features

✔ Lightweight API

✔ SQL parameter support

✔ SQL injection protection

✔ Validation pipeline

✔ Safe Mode enabled by default

✔ Logging & warnings

✔ Async support

🪪 License

MIT License © Abdelwaheb Ammar

✅ Compatibility

.NET 6, .NET 7, .NET 8,.NET9,.Netstandard2.0,Netstandard2.1

SQL Server (more DBMS support planned)

📄 License

MIT License

👨‍💻 Author

Developed by 💬Abdelwaheb AMMAR

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  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 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 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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on DbEasy:

Package Downloads
DbEasy.ORM

A lightweight ORM extension built on top of DbEasy — simple, fast, and entity-based data management.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.0 83 5/24/2026
1.4.0-rc01 84 5/24/2026
1.4.0-preview01 77 5/24/2026
1.4.0-beta01 85 5/24/2026
1.3.0 90 5/15/2026
1.3.0-rc01 76 5/15/2026
1.3.0-preview01 88 5/15/2026
1.3.0-beta01 89 5/15/2026
1.2.0 479 2/8/2026
1.2.0-rc01 146 2/8/2026
1.2.0-preview01 140 2/8/2026
1.2.0-beta01 153 2/8/2026
1.1.0 309 1/11/2026
1.1.0-rc01 149 1/11/2026
1.1.0-preview01 145 1/11/2026
1.1.0-beta01 148 1/11/2026
1.0.105 357 12/28/2025
1.0.105-preview1 96 12/28/2025
1.0.105-beta01 101 12/28/2025
1.0.104 333 12/19/2025
Loading failed