DbLocator Documentation
Welcome to the DbLocator documentation. This documentation will help you understand and use the DbLocator library effectively.
What is DbLocator?
DbLocator is a .NET library that simplifies database interactions for multi-database tenant applications on SQL Server. It provides a robust foundation for managing connections, roles, and sharding logic—all with built-in security features.
Multi-Tenant Database Management Seamlessly manage isolated databases for each tenant—ideal for SaaS platforms needing data separation and centralized control.
Database Sharding Across Servers Scale horizontally by distributing tenant databases across multiple SQL Server instances, identified by hostname, FQDN, or IP address.
Role-Based Access Control Enforce fine-grained user permissions by integrating with SQL Server roles. Easily map application roles to database roles.
Secure Connection Handling Supports SQL Server authentication with options for trusted or username/password connections, including database user provisioning if desired.
Data Encryption Encrypt and decrypt credentials or other secure metadata using a custom key, ensuring compliance and security.
Connection Caching for Performance Integrate custom or built-in caching to avoid repeated resolution of tenant configurations, improving performance under load.
Getting Started
To get started with DbLocator, check out Getting Started Guide.
Examples
Check out the Examples to see DbLocator in action.
API Reference
For detailed API documentation, visit API Reference.
Contributing
I welcome contributions! Please see Contributing Guide for more information.
License
DbLocator is licensed under the MIT License. See the LICENSE file for details.
Support
If you need help or have questions:
- Open an issue
- Check our documentation
- Join our discussions