L2WLib.Combine
2.0.3
dotnet add package L2WLib.Combine --version 2.0.3
NuGet\Install-Package L2WLib.Combine -Version 2.0.3
<PackageReference Include="L2WLib.Combine" Version="2.0.3" />
<PackageVersion Include="L2WLib.Combine" Version="2.0.3" />
<PackageReference Include="L2WLib.Combine" />
paket add L2WLib.Combine --version 2.0.3
#r "nuget: L2WLib.Combine, 2.0.3"
#:package L2WLib.Combine@2.0.3
#addin nuget:?package=L2WLib.Combine&version=2.0.3
#tool nuget:?package=L2WLib.Combine&version=2.0.3
L2WLib.Combine
L2WLib.Combine is a lightweight, production-ready .NET utility library designed to simplify backend development by providing reusable components for database operations, encryption, HTTP requests, numeric conversions, and general utilities.
It is built for fast development, secure SQL handling, lightweight architecture, and NuGet distribution.
FEATURES
DATABASE UTILITY (DBUtility)
Provides ORM-like lightweight database handling.
- Generic mapping using reflection (ExecuteGenericList<T>)
- Insert / Update / Upsert support
- Fully parameterized SQL execution (SQL injection safe)
- DataTable / DataSet helpers
- Column metadata reader
- SQL identifier validation
- Reflection caching for performance
Example: var users = DBUtility.ExecuteGenericList<User>( connectionString, "SELECT * FROM Users", CommandType.Text );
Insert: var data = new List<DBData> { new DBData("Name", "John"), new DBData("Age", 25) };
long id = DBUtility.Insert(connectionString, "Users", data);
Update: DBUtility.Update(connectionString, "Users", data, conditions);
ENCRYPTION UTILITY (AES)
AES-256 encryption/decryption using PBKDF2.
- AES encryption/decryption
- Salt-based key generation
- Base64 output
- URL-safe encoding option
⚠️ Default key is for testing only.
Example: string encrypted = Encryption.Encrypt("Hello World"); string decrypted = Encryption.Decrypt(encrypted);
HTTP UTILITY
Singleton HttpClient based HTTP helper.
- Async GET requests
- Custom headers
- Timeout handling
- Prevents socket exhaustion
Example: string response = await HttpUtility.FetchFromWebAsync("https://api.example.com");
NUMERIC TO WORD CONVERTER
Converts numbers into words with currency support.
- INR, USD, EUR support
- Decimal handling
- Negative numbers
- Fully iterative logic
Example: string words = NumericToWord.ConvertNumericToWord("12345.50", CurrencyType.INR);
Output: One Thousand Two Hundred Thirty Four and Fifty Cents Rupees Only
GENERIC UTILITY
Common backend helper utilities.
- File operations
- URL builder
- OTP generator
- Card masking
- Enum helpers
- DataTable ↔ List conversion
- IST date/time utilities
- Number formatting (Indian system)
OTP Example: string otp = GenericUtility.GetOTP(6);
File Example: bool exists = GenericUtility.IsFileExist(path);
LEGACY FORMAT EXTENSIONS
Deprecated methods for backward compatibility.
- Phone formatting
- URL formatting
- Email validation
- Date parsing
⚠️ Use modern extension methods instead.
INSTALLATION
NuGet: Install-Package L2WLib.Combine
.NET CLI: dotnet add package L2WLib.Combine
USAGE
using L2WLib.Combine;
IMPORTANT NOTES
SECURITY:
- Never use default encryption key in production
- Validate all inputs
- Use parameterized queries only
PERFORMANCE:
- Reflection caching improves performance
- Singleton HttpClient avoids socket issues
- Iterative implementations used
LIMITATIONS
- Not a full ORM like Entity Framework
- No migrations or tracking
- Lightweight utility-focused only
ARCHITECTURE
- Lightweight modular design
- Secure SQL handling
- High-performance caching
- Reusable utilities
- Minimal dependencies
FUTURE IMPROVEMENTS
- Async DB operations
- Fluent query builder
- Retry policies
- Logging system
- Encryption key provider
- Performance profiling tools
SUMMARY
L2WLib.Combine is a compact, high-performance .NET utility library that simplifies database operations, encryption, HTTP communication, and general backend development with secure and reusable components.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 was computed. 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. |
| .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 was computed. |
| .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
- Microsoft.Data.SqlClient (>= 7.0.0)
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 |
|---|---|---|
| 2.0.3 | 128 | 5/1/2026 |
| 2.0.2 | 112 | 5/1/2026 |
| 2.0.1 | 131 | 4/28/2026 |
| 2.0.0 | 117 | 4/25/2026 |
| 1.1.9 | 122 | 4/18/2026 |
| 1.1.8 | 120 | 4/17/2026 |
| 1.1.7 | 125 | 4/12/2026 |
| 1.1.6 | 120 | 4/11/2026 |
| 1.1.5 | 1,016 | 10/12/2022 |
| 1.1.4 | 885 | 10/8/2022 |
| 1.1.3 | 897 | 9/14/2022 |
| 1.1.2 | 961 | 9/14/2022 |
| 1.1.1 | 1,006 | 3/3/2022 |
| 1.1.0 | 964 | 3/3/2022 |
| 1.0.9 | 782 | 8/25/2021 |
| 1.0.8 | 996 | 1/9/2021 |
| 1.0.7 | 924 | 1/5/2021 |
| 1.0.6 | 952 | 1/1/2021 |
- Improved DBUtility performance and stability.
- Enhanced encryption error handling.
- Updated code comments and documentation for better clarity.