# C# ORM Libraries

> AI-ranked search results for `best c sharp orm libraries` on awesome-repositories.com — ordered by an LLM for relevance, best match first. 106 total matches; showing the top 9.

Explore on the web: https://awesome-repositories.com/q/best-c-sharp-orm-libraries

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [this search on awesome-repositories.com](https://awesome-repositories.com/q/best-c-sharp-orm-libraries).**

## Results

- [aspnet/entityframework](https://awesome-repositories.com/repository/aspnet-entityframework.md) (14,690 ⭐) — EntityFramework is a .NET object-relational mapper that translates application objects into database tables and rows. It functions as a query engine that converts high-level expressions into optimized SQL commands for data retrieval.

The project provides a mechanism for monitoring modifications to loaded objects to synchronize application state with the database. It also includes a system for synchronizing database structures with data models using versioned migration scripts.

The framework supports multi-backend database integration through a plugin system, allowing a single application to
- [dotnet/efcore](https://awesome-repositories.com/repository/dotnet-efcore.md) (14,587 ⭐) — Entity Framework Core is an object-relational mapper that enables developers to interact with database systems using strongly-typed code. It serves as a comprehensive data access framework, providing a unified interface for mapping application objects to relational and non-relational database schemas while managing the lifecycle of data operations through a central context.

The project distinguishes itself through a provider-based architecture that decouples core data access logic from specific database engines, allowing for consistent interaction across diverse storage systems. It features a
- [linq2db/linq2db](https://awesome-repositories.com/repository/linq2db-linq2db.md) (3,239 ⭐) — linq2db is a type-safe object-relational mapper that translates LINQ expressions into optimized SQL queries for multiple database providers. It functions as a database mapper that links classes to tables and includes a SQL query builder and a command-line schema tool for generating data classes from existing databases.

The project provides high-performance bulk data processing for inserting and loading large volumes of records via batch or binary copy methods. It also supports advanced SQL operations, including window functions, common table expressions for recursive hierarchical querying, an
- [stackexchange/dapper](https://awesome-repositories.com/repository/stackexchange-dapper.md) (18,320 ⭐) — Dapper is a high-performance micro-ORM and SQL object mapper for .NET. It functions as an ADO.NET extension library that adds data mapping capabilities directly to database connections, allowing SQL query results to be transformed into typed objects.

The project prioritizes execution speed and low memory overhead by using intermediate language generation to map database columns to object properties. It further optimizes performance through the use of concurrent caching for mapping functions and literal value injection to improve database execution plans.

The library covers a broad range of d
- [dotnetnext/sqlsugar](https://awesome-repositories.com/repository/dotnetnext-sqlsugar.md) (5,816 ⭐) — SqlSugar is an object-relational mapping library for .NET that translates C# and VB objects into database queries and tables without requiring raw SQL. It is designed as a multi-database ORM supporting SQL Server, MySQL, PostgreSQL, Oracle, MongoDB, ClickHouse, and other databases through a unified API, and it is compatible with .NET AOT compilation for native ahead-of-time deployment.

The library distinguishes itself through high-speed bulk data operations that can insert or update millions of records in seconds using batch processing instead of row-by-row handling. It also provides multi-te
- [nhibernate/nhibernate-core](https://awesome-repositories.com/repository/nhibernate-nhibernate-core.md) (2,171 ⭐) — NHibernate Object Relational Mapper
- [dotnetcore/freesql](https://awesome-repositories.com/repository/dotnetcore-freesql.md) (4,388 ⭐) — FreeSql is a .NET object-relational mapper and data access layer that translates object-oriented code into SQL for multiple relational database providers. It functions as a fluent SQL query builder and database schema synchronizer, allowing developers to align database table and index structures with entity class definitions.

The framework is specifically optimized for .NET Native AOT to ensure reduced memory footprints and faster startup times. It includes a database traffic manager to distribute load through read-write splitting, dynamic table sharding, and tenant-based data isolation.

Bro
- [dapperlib/dapper](https://awesome-repositories.com/repository/dapperlib-dapper.md) (18,331 ⭐) — Dapper is a lightweight object-relational mapper for .NET that functions as a high-performance data access library. It operates by extending standard database connection interfaces, allowing developers to execute raw SQL queries while automating the mapping of database results to strongly-typed objects.

The library distinguishes itself through its use of runtime code generation, which creates high-performance instructions to map database rows to object properties with minimal overhead. It provides flexible data retrieval options, supporting both memory-buffered loading for speed and row-by-ro
- [servicestack/servicestack.ormlite](https://awesome-repositories.com/repository/servicestack-servicestack-ormlite.md) (1,518 ⭐) — Fast, Simple, Typed ORM for .NET
