DATA & CONFIG · SOURCE-AVAILABLE
The performance of handwritten SQL with the structure of a framework - without choosing between them. Raw SQL Mode (KMQL), Entity Mode, and Repository - all in one.
Most ORMs force a choice: use a full ORM and accept the performance overhead and abstraction leaks, or drop to raw SQL and lose structure, safety, and maintainability. Neither is ideal in a high-performance production system.
Kiwi ORM is built around the principle that the right data access model depends on the operation - not the framework. Use Raw SQL Mode (KMQL) for complex queries requiring full control and cross-database portability. Use Entity Mode where structure and change tracking matter. Use Repository mode where you want a clean abstraction. All three are first-class, all in one framework, against any database.
A strongly-typed pipeline architecture eliminates runtime reflection overhead and provides predictable performance at every scale. The result is the control of handwritten SQL with the maintainability of a framework - not a trade-off between the two.
A high-performance .NET ORM with Raw SQL, Entity and Repository modes across 11+ databases.
Choose the right model per operation - not per project.
Full control over SQL with typed result mapping, powered by KMQL (Kiwi Markup Query Language) for cross-database interoperability. Write the exact query you need - Kiwi ORM handles parameter binding, result mapping, and connection management across any supported database engine.
Strongly-typed entity mapping with change tracking, relationship management, and schema reflection. Full CRUD operations without writing SQL, while remaining query-transparent and performant.
Clean abstraction over data access with a repository pattern. Define your data contracts and let Kiwi ORM implement the standard operations - queryable, filterable, and paginatable without boilerplate.
Kiwi ORM Core is the free, source-available foundation layer of Kiwi ORM - the strongly-typed pipeline, connection management, result mapping, and cross-database abstraction that everything else is built on. It also provides the framework and hooks for implementing auditing; you write the audit code, or upgrade to the Commercial Edition for ready-made adapters. It ships as part of Kiwi Foundation.
One pipeline architecture. Every mode - Raw SQL (KMQL), Entity, Repository - runs through the same typed execution layer. No dual code paths, no performance surprises, no hidden magic. If you can write it in SQL, ORM Core can execute it.
The ORM Core is the data access layer for teams that refuse to choose between control and productivity.
Built-in controls for auditability, data access governance and security-conscious application development — available in the Kiwi ORM Commercial Edition. ORM Core includes the auditing hooks; the Commercial Edition adds fully tested, zero-code audit adapters for all 11 supported relational databases, plus a MongoDB adapter.
Every query logged with user, timestamp, parameters, and result metadata.
Row-level and column-level access controls can be enforced at the ORM layer.
Technical controls to support applicable requirements.
The IAuditAdapter extension point lets you send audit records to SIEM, Splunk, or compliance tooling by implementing a custom adapter.
Record audit data in your relational database, or in MongoDB. MongoDB is supported as an audit store only; Kiwi ORM does not support it as a data source.
Hierarchies, org charts, category trees and bills of materials — described once in typed C#, executed on any database. Kiwi ORM writes the right WITH clause for each engine: WITH RECURSIVE on PostgreSQL, MySQL and SQLite; plain WITH on SQL Server; the correct dialect everywhere else.
No SQL strings. No runtime surprises. Same query, ten databases.
// Who reports to this manager, at any depth? var orgChart = context .WithRecursiveCte<Employee, Employee, Employee>("OrgChart") .BaseCase(e => e.ManagerId == null) .RecursiveCase(join => join .On(r => r.ManagerId, cte => cte.EmployeeId) .Where(r => r.IsActive)) .MaxRecursion(10) .Build() .Execute();
var highEarners = context
.WithCte<Employee, Employee>("HighEarners")
.FromTable<Employee>()
.Where(e => e.Salary > 50000
&& e.Department.ToUpper() == "ENGINEERING")
.Build()
.Execute();
Conditions are C# expressions — compiler-checked, refactor-safe. CTE-driven UPDATE, INSERT and DELETE are supported. Raw SQL fragments are validated before execution.
ORM performance benchmark across three data access libraries — real measured timings, no manufactured values.
Kiwi ORM is a high-performance data access framework with three access modes on one strongly-typed pipeline: Raw SQL (KMQL), Entity Mode and Repository Mode. You choose the right model per operation, with the control of handwritten SQL and the structure of a framework.
SQL Server, PostgreSQL, MySQL, MariaDB, SQLite, Oracle, Firebird, DB2, Informix, Sybase and ODBC, with sync and async execution, stored procedure support and built-in transaction management.
It covers both styles. Entity Mode provides change tracking, relationship mapping and schema reflection, and Raw SQL Mode (KMQL) offers Dapper-style performance with typed parameter binding and result mapping. The page includes a benchmark you can run yourself against EF Core and Dapper.
Yes. Raw SQL Mode uses KMQL (Kiwi Markup Query Language), a cross-database markup DSL, so you write portable queries once and Kiwi ORM executes them on any of the 11+ supported databases, with typed parameter binding and result mapping. Managed CTE works the same way, generating the correct dialect for each engine.
Kiwi ORM is built on a strongly-typed pipeline that avoids runtime reflection overhead for predictable performance at scale, and Raw SQL Mode targets Dapper-level performance. The page includes a benchmark you can run yourself against EF Core and Dapper.
Yes. Managed CTE lets you describe a recursive hierarchy once in typed C#. Kiwi ORM generates the right WITH or WITH RECURSIVE clause for each database engine.
No. Kiwi ORM Core is a free, source-available foundation layer: the source is visible, but it is not open source. The Commercial Edition adds features such as Repository Mode and ready-made compliance auditing.
Kiwi ORM Core provides the auditing hooks, and you write the audit code. The Commercial Edition adds fully tested, zero-code audit adapters for all 11 supported relational databases, plus a MongoDB adapter. MongoDB is supported as an audit store only, not as a data source.
Need to query across systems Kiwi ORM does not connect to directly? See Kiwi Fabric. Technical detail is in the Kiwi ORM documentation.
Kiwi ORM is available under a Source-Available licence. The Commercial Edition with zero-code compliance auditing and advanced features is available for qualifying organisations.
Request Access Enterprise Enquiry