Guides¶
Welcome to the DTDE guides! This section contains tutorials to help you get started and become productive with DTDE.
Learning Path¶
Follow this recommended path to learn DTDE:
graph LR
A[Quick Start] --> B[Getting Started]
B --> C{Choose Focus}
C --> D[Sharding Guide]
C --> E[Temporal Guide]
D --> F[Migration Guide]
E --> F Guide Overview¶
| Guide | Description | Time | Level |
|---|---|---|---|
| Quick Start | Minimal setup to get running | 5 min | Beginner |
| Getting Started | Complete introduction to DTDE | 20 min | Beginner |
| Sharding Guide | All sharding strategies in depth | 25 min | Intermediate |
| Temporal Guide | Point-in-time queries and versioning | 20 min | Intermediate |
| Migration Guide | Migrate existing EF Core projects | 15 min | Intermediate |
Quick Start (5 minutes)¶
The fastest way to get DTDE running:
// 1. Inherit from DtdeDbContext
public class AppDbContext : DtdeDbContext
{
public DbSet<Customer> Customers => Set<Customer>();
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
// 2. Configure sharding
modelBuilder.Entity<Customer>()
.ShardBy(c => c.Region);
}
}
// 3. Register with UseDtde()
services.AddDbContext<AppDbContext>(options =>
options.UseSqlServer(connectionString)
.UseDtde(dtde => dtde
.AddShard(s => s.WithId("EU").WithShardKeyValue("EU"))
.AddShard(s => s.WithId("US").WithShardKeyValue("US"))));
Choose Your Path¶
New to DTDE?¶
- Quick Start - Get running in 5 minutes
- Getting Started - Understand all the concepts
- Sharding Guide or Temporal Guide - Deep dive
Experienced with EF Core?¶
- Getting Started - DTDE-specific concepts
- Jump directly to Sharding Guide or Temporal Guide
Migrating an Existing Project?¶
- Migration Guide - Step-by-step migration
- API Reference - Detailed API documentation
Related Documentation¶
- API Reference - Complete API documentation
- Configuration - All configuration options
- Architecture - System design
- Troubleshooting - Common issues and solutions
- Samples - Working examples