Appearance
JASE.Database
JASE.Database is a lightweight, high-performance ORM for SQL Server and PostgreSQL targeting .NET 8 and .NET 10. It focuses on materialization speed, predictable SQL generation, and production-grade schema tooling.
Published benchmarks put JASE.Database in the same performance band as Dapper on warm wide GetList (parity, not a guaranteed win), with competitive GetByPk/InsertSingle results and typically strong allocation behavior — while retaining ORM ergonomics (query builder + schema tooling).
Key capabilities
- Dapper-class materialization on warm wide reads (verify with
GetListWide) and low allocations - Fluent, type-safe query builder
- Two-level execution model (sync + async)
- Schema reconciliation via
TableInfoandColumnInfo - Database-aware SQL generation (SQL Server & PostgreSQL)
- Optional change tracking (opt-in, not global)
- Deterministic connection, command, and reader lifecycle management
- MEL logging via
LogConfig(quiet by default) with optional per-connection or library-wideILoggerFactory
Logging
Quiet by default. For statement-level SQL (including DDL) see Logging.
Minimum to log SQL text:
csharp
databaseConfig.Logging = new LogConfig
{
Command = LogLevel.Debug,
IncludeSqlText = true,
LoggerFactory = new ForwardingLoggerFactory(appDatabaseLogger),
};Success events are emitted at Information; the host sink must allow that level. Diagnostics can stay Off.
Design principles
Explicit SQL, minimal magic
JASE.Database generates SQL you can read and reason about.
No hidden queries, no tracking surprises.Performance is a requirement, not an outcome
Materialization uses typed accessors, and optimized reflection caching.Reflection is front-loaded
Mapping is compiled once — rows are processed using fast delegates.Schema tools are first-class
JASE.Database does not assume migrations; instead it includes tooling to describe and reconcile schemas cleanly. See Schema & Reconciliation.
Supported databases
- SQL Server
- Azure SQL
- Localdb
- SQL Server 2019+
- Supports computed columns, collations, identity
- PostgreSQL