-
Notifications
You must be signed in to change notification settings - Fork 12
Home
github-actions[bot] edited this page Jan 28, 2026
·
9 revisions
Welcome to the HybridDb documentation! This documentation provides comprehensive guidance for using HybridDb, a document database library built on SQL Server.
- Getting Started - Introduction, installation, quick start, and core concepts
- How to Build and Contribute - Development setup, building, testing, and contribution guidelines
- Connections and Testing - Connection strings, testing strategies, and environment-specific configuration
- Documents, Tables and Projections - Document configuration, table design, and property projections
- Events - Internal event handlers
- DocumentStore and DocumentTransaction - Store lifecycle, transaction management, and isolation levels
- DocumentSession - Store and Load - Basic CRUD operations, entity states, and session lifecycle
- DocumentSession - Query - LINQ queries, raw SQL queries, and query optimization
- DocumentSession - Concurrency Model - Optimistic concurrency, ETags, and conflict detection
- DocumentSession - Advanced Scenarios - Metadata, ETags, deferred commands, and advanced patterns
- Migrations - Schema migrations, document migrations, and migration patterns
Installation
dotnet add package HybridDbBasic Usage
var store = DocumentStore.ForTesting(TableMode.TempTables);
store.Document<Product>().With(x => x.Name);
using var session = store.OpenSession();
session.Store(new Product { Id = "p1", Name = "Widget" });
session.SaveChanges();Querying
using var session = store.OpenSession();
var products = session.Query<Product>()
.Where(x => x.Price > 100)
.OrderBy(x => x.Name)
.ToList();- Simple API: Store and retrieve .NET objects with minimal configuration
- LINQ Queries: Query documents using familiar LINQ syntax
- Schema Evolution: Built-in migration support for schema and data changes
- Transactions: Full ACID transaction support via SQL Server
- Event Store: Optional event sourcing capabilities
- Optimistic Concurrency: ETags for conflict detection
- Polymorphism: Store and query document hierarchies
- Projections: Index document properties for efficient querying
- Start with Getting Started
- Learn about Connections and Testing
- Understand Documents and Projections
- Practice Store and Load operations
- Master Query capabilities
- Learn Migrations for schema evolution
- Understand Transactions
- Explore Advanced Scenarios
- Implement Event Store patterns
- Build complex migration strategies
- Optimize query performance
- Understand Concurrency Model for production systems
- Contribute to the project with How to Build and Contribute
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Your Application β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β DocumentSession β
β (Unit of Work / First-level Cache) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β DocumentStore β
β (Configuration / Schema / Migrations) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SQL Server β
β (Storage / Transactions / Indexes) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- GitHub Repository: https://github.com/asgerhallas/HybridDb
- Issues: Report bugs and request features on GitHub Issues
- NuGet Package: HybridDb on NuGet
- License: MIT License
- Read Getting Started to begin using HybridDb
- Explore Configuration options for your environment
- Learn about Migrations for evolving your schema
- Dive into Advanced Scenarios for complex use cases
Documentation generated for HybridDb - A document database on SQL Server