Skip to content

Conversation

@TraberSoftware
Copy link

@TraberSoftware TraberSoftware commented Sep 12, 2025

Query Builders/Unleasharp.DB.Base - Unleasharp.DB.Base

Unleasharp.DB.Base is a lightweight, database-agnostic abstraction layer for .NET that offers fluent query building, automatic connection management, and type-safe result mapping.

Main features

🔌 Connection Handling

  • Automatic connection creation and management
  • Configurable automatic connection regeneration after specified intervals
  • Ensures database connections are always open and ready for use

🧵 Threading Support

  • Thread-safe connection management through ConnectorManager
  • Each thread receives its own dedicated database connection instance

📝 Query Generation

  • Query class: Holds SQL query parameters in an engine-agnostic manner
  • QueryBuilder class: Executes queries against the database and maps results to specified types
  • Follows fluent interface pattern for intuitive query building

🔄 Serialization

  • Automatic mapping of database results to C# objects using generic type parameters
  • Supports both simple class mapping and attribute-based schema definitions

Database implementations:

Query Builders/Unleasharp.DB.Base - https://github.com/TraberSoftware/Unleasharp.DB.Base

Unleasharp.DB.Base is a lightweight, database-agnostic abstraction layer for .NET that offers fluent query building, automatic connection management, and type-safe result mapping. 

🔌 Connection Handling
* Automatic connection creation and management
* Configurable automatic connection regeneration after specified intervals
* Ensures database connections are always open and ready for use
🧵 Threading Support
* Thread-safe connection management through ConnectorManager
* Each thread receives its own dedicated database connection instance
📝 Query Generation
* Query class: Holds SQL query parameters in an engine-agnostic manner
* QueryBuilder class: Executes queries against the database and maps results to specified types
* Follows fluent interface pattern for intuitive query building
🔄 Serialization
* Automatic mapping of database results to C# objects using generic type parameters
* Supports both simple class mapping and attribute-based schema definitions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant