SmartDbConnector 1.0.4
dotnet add package SmartDbConnector --version 1.0.4
NuGet\Install-Package SmartDbConnector -Version 1.0.4
<PackageReference Include="SmartDbConnector" Version="1.0.4" />
<PackageVersion Include="SmartDbConnector" Version="1.0.4" />
<PackageReference Include="SmartDbConnector" />
paket add SmartDbConnector --version 1.0.4
#r "nuget: SmartDbConnector, 1.0.4"
#:package SmartDbConnector@1.0.4
#addin nuget:?package=SmartDbConnector&version=1.0.4
#tool nuget:?package=SmartDbConnector&version=1.0.4
SmartDBConnector - Universal Database Connector
A powerful, unified database connector for .NET that supports MSSQL, MySQL, PostgreSQL, Oracle, and MongoDB with a simple, consistent API.
🔐 License Registration (Free)
To use this package, please register for a free access token.
👉 Register here:
https://forms.gle/ywYYbftF3mrWpcfn8
After submitting the form:
- 📧 You will receive an email within 24 hours
- 🔑 The email contains your Username and Access Token
- 🚀 Use them when initializing the SmartDBConnector client
This system is completely free and used only for usage tracking and license management.
📦 Installation
Package Manager
Install-Package SmartDBConnector
.NET CLI
dotnet add package SmartDBConnector
Package Reference
<PackageReference Include="SmartDBConnector" Version="1.0.0" />{=html}
🎯 Quick Start
using SmartDBConnector; using SmartDBConnector.Enums;
using var db = new SmartDBConnectorClient( username: "your-username", licenseToken: "your-license-token", connectionString: "Server=localhost;Database=mydb;Uid=root;Pwd=password;", databaseType: DatabaseType.MySQL );
if (await db.TestConnectionAsync()) { Console.WriteLine("Connected successfully!"); var result = await db.ExecuteScalarAsync("SELECT VERSION()"); Console.WriteLine($"Database version: {result}"); }
🔧 Supported Databases
Database Provider Example
Microsoft SQL Server System.Data.SqlClient Server=localhost;Database=mydb;Integrated Security=true;
MySQL MySql.Data Server=localhost;Database=mydb;Uid=root;Pwd=password;
PostgreSQL Npgsql Host=localhost;Database=mydb;Username=postgres;Password=postgres;
Oracle Oracle.ManagedDataAccess User Id=system;Password=oracle;Data Source=localhost:1521/XE;
MongoDB MongoDB.Driver mongodb://localhost:27017/mydb
📊 API Overview
- OpenAsync()
- Close()
- TestConnectionAsync()
- ExecuteQueryAsync()
- ExecuteScalarAsync()
- ExecuteNonQueryAsync()
- ExecuteStoredProcedureAsync()
- InsertAsync()
- UpdateAsync()
- DeleteAsync()
- SelectAsync()
- BulkInsertAsync()
- BeginTransactionAsync()
- CommitTransactionAsync()
- RollbackTransactionAsync()
- MongoInsertAsync()
- MongoFindAsync()
- MongoUpdateAsync()
- MongoDeleteAsync()
⚙️ Configuration Options
var options = new SmartDBConnectorOptions { CommandTimeout = 60, EnableRetry = true, RetryCount = 3, RetryDelayMs = 1000, EnableSqlLogging = true, EnablePerformanceMonitoring = true, SlowQueryThresholdMs = 500 };
🚨 Error Handling
try { await db.OpenAsync(); } catch (DatabaseConnectionException ex) { Console.WriteLine($"Connection error: {ex.Message}"); } catch (QueryExecutionException ex) { Console.WriteLine($"Query error: {ex.Message}"); } catch (StoredProcedureException ex) { Console.WriteLine($"SP error: {ex.ErrorCode} - {ex.Message}"); }
📝 License Validation
- Register at: https://forms.gle/ywYYbftF3mrWpcfn8\
- Receive Username and Token via email\
- Use them in the constructor
License validation happens once per application lifetime.
🤝 Contributing
Contributions are welcome! Please submit pull requests or open issues on GitHub.
📄 License
Copyright © 2026 SmartDBConnector. All rights reserved.
| Product | Versions 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 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. |
-
net8.0
- Microsoft.Data.SqlClient (>= 5.2.3)
- Microsoft.Extensions.Configuration (>= 10.0.3)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.3)
- Microsoft.Extensions.Configuration.Json (>= 10.0.3)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.3)
- MongoDB.Driver (>= 3.6.0)
- MySql.Data (>= 9.6.0)
- Newtonsoft.Json (>= 13.0.4)
- Npgsql (>= 10.0.1)
- Oracle.ManagedDataAccess.Core (>= 23.26.100)
- System.Data.SqlClient (>= 4.9.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.