qmetrics.net

PetaPoco

Lightweight .NET micro-ORM for POCO models

PetaPoco is a small, dependency-free .NET ORM for mapping POCOs to SQL databases with sync or async APIs.

Overview

PetaPoco provides database access for .NET applications without the weight of a full ORM stack. It maps plain CLR objects to tables using SQL as the query language, dynamic method generation for fast column-to-property assignment, and optional attributes or fluent configuration when you need stricter mapping.

Helper methods cover insert, update, delete, save, and paged queries that compute total counts automatically. Transactions, named parameters from object properties, SQL builder utilities, logging hooks, and value converters are built in. Version 6 targets .NET Standard 2.0 and modern .NET with asynchronous operations alongside synchronous calls.

Supported databases include SQL Server, SQL Server CE, MS Access, SQLite, MySQL, MariaDB, Firebird, and PostgreSQL, with Oracle supported but without integration tests in the project. Distribution is primarily through the NuGet PetaPoco.Compiled package; older single-file distributions remain documented for legacy v5 users.

The design compares philosophically to Dapper, Massive, and ActiveRecord-style tools while keeping a single focused API for CRUD and ad hoc SQL in application code.

Key features

  • POCO mapping without heavy attributes
  • Sync and async database APIs
  • Insert, update, delete helpers
  • Automatic paged queries
  • Fluent configuration support
  • Inline SQL builder
  • Multiple database providers
  • Transaction support

Use cases

  • .NET apps needing simple SQL ORM
  • Lightweight data access layers
  • Multi-database .NET services
  • Paged list queries

Tags

Similar software

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

GORM

Feature-rich ORM library for Go applications

GORM maps Go structs to SQL databases with migrations, associations, hooks, and a fluent query API. It targets developer-friendly access patterns for common CRUD and relationship modeling.

★ 40k⟳ 1 month agoMIT
Frameworks & PlatformsDesktop/CLI app

TypeORM

TypeScript and JavaScript ORM for many SQL and NoSQL databases

TypeORM maps objects to relational and document databases from Node.js, browsers, and mobile shells. It supports TypeScript and JavaScript with both Data Mapper and Active Record styles.

★ 36.7k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

MyBatis 3

Java SQL mapper with XML or annotation config

MyBatis links Java objects to SQL and stored procedures via XML or annotations. It trims repetitive JDBC parameter and result handling.

★ 20.4k⟳ yesterdayApache-2.0

Node Redis

High-performance Redis client for Node.js

node-redis connects Node.js applications to Redis with typed commands, clustering, pub/sub, transactions, and optional client-side caching.

★ 17.6k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app

MyBatis-Plus

Enhanced MyBatis toolkit for Java database access

MyBatis-Plus extends MyBatis with code generation, conditional query builders, and pagination helpers. It stays compatible with MyBatis while adding convenience APIs for common CRUD work.

★ 17.5k⟳ todayApache-2.0
Frameworks & PlatformsDesktop/CLI app