A simple micro-ORM for .NET that maps SQL query results directly to POCO objects with minimal configuration.
NPoco is a simple micro-ORM for .NET that maps SQL query results directly to plain old CLR objects (POCOs) with minimal configuration. It allows developers to write raw SQL queries while automatically handling the mapping between database columns and object properties, reducing boilerplate code. The project is a fork of PetaPoco, based on Schotime's branch, with additional features.
.NET developers who prefer writing raw SQL but want to avoid manual data mapping, and those seeking a lightweight alternative to full-featured ORMs like Entity Framework.
NPoco offers a straightforward, no-fuss approach to data access by keeping developers close to SQL while automating object mapping. It's faster to set up than heavier ORMs and provides more control than some micro-ORMs, making it ideal for projects where simplicity and performance are priorities.
Simple microORM that maps the results of a query onto a POCO object. Project based on Schotime's branch of PetaPoco
Automatically maps database columns to POCO properties with case-insensitive matching, requiring no explicit configuration for basic queries, as shown in the README's User class example.
Setup involves just a connection string and POCO definitions, enabling quick database querying without complex mapping files or attributes, reducing initial overhead.
Provides full control over SQL queries, allowing developers to leverage database-specific optimizations and features directly, ideal for performance-critical scenarios.
Designed as a micro-ORM, it reduces runtime overhead and improves execution speed compared to heavier alternatives like Entity Framework, making it efficient for simple data access.
Lacks built-in support for common ORM features such as change tracking, lazy loading, or database migrations, which may require manual implementation or third-party tools.
Relies on developers writing and maintaining raw SQL, which can become error-prone and less maintainable in projects with complex queries or evolving schemas.
Documentation is provided via a wiki, which might be less comprehensive or up-to-date than official docs for larger projects, potentially increasing troubleshooting time.
As a fork of PetaPoco, it may have a smaller community and slower update cycle compared to mainstream ORMs, risking long-term support and compatibility issues.
NPoco is an open-source alternative to the following products:
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
.Net aot ORM SqlServer ORM Mongodb ORM MySql 瀚高 Postgresql ORM DB2 Hana 高斯 Duckdb C# VB.NET Sqlite ORM Oracle ORM Mysql Orm 虚谷数据库 达梦 ORM 人大金仓 ORM 神通ORM C# ORM , C# ORM .NET ORM NET9 ORM .NET8 ORM ClickHouse ORM QuestDb ,TDengine ORM,OceanBase ORM,GaussDB ORM,Tidb ORM Object/Relational Mapping
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.