SmartDbConnector 1.0.4

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

SmartDBConnector - Universal Database Connector

NuGet
Version License

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

  1. Register at: https://forms.gle/ywYYbftF3mrWpcfn8\
  2. Receive Username and Token via email\
  3. 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 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. 
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.0.4 45 3/2/2026
1.0.3 41 3/2/2026
1.0.2 44 3/2/2026
1.0.1 45 3/2/2026