DbEasy 1.4.0
dotnet add package DbEasy --version 1.4.0
NuGet\Install-Package DbEasy -Version 1.4.0
<PackageReference Include="DbEasy" Version="1.4.0" />
<PackageVersion Include="DbEasy" Version="1.4.0" />
<PackageReference Include="DbEasy" />
paket add DbEasy --version 1.4.0
#r "nuget: DbEasy, 1.4.0"
#:package DbEasy@1.4.0
#addin nuget:?package=DbEasy&version=1.4.0
#tool nuget:?package=DbEasy&version=1.4.0
📦 DbEasy
Version: 1.4.0
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 | Versions 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. |
-
.NETStandard 2.0
- LogifyNet (>= 1.0.0.1)
- Microsoft.Data.SqlClient (>= 6.1.1)
- System.Data.SqlClient (>= 4.9.0)
-
.NETStandard 2.1
- LogifyNet (>= 1.0.0.1)
- Microsoft.Data.SqlClient (>= 6.1.1)
- System.Data.SqlClient (>= 4.9.0)
-
net6.0
- LogifyNet (>= 1.0.0.1)
- Microsoft.Data.SqlClient (>= 6.1.1)
- System.Data.SqlClient (>= 4.9.0)
-
net7.0
- LogifyNet (>= 1.0.0.1)
- Microsoft.Data.SqlClient (>= 6.1.1)
- System.Data.SqlClient (>= 4.9.0)
-
net8.0
- LogifyNet (>= 1.0.0.1)
- Microsoft.Data.SqlClient (>= 6.1.1)
- System.Data.SqlClient (>= 4.9.0)
-
net9.0
- LogifyNet (>= 1.0.0.1)
- Microsoft.Data.SqlClient (>= 6.1.1)
- System.Data.SqlClient (>= 4.9.0)
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 |