.N .NET Landscape

NPoco

Data Access
github.com/schotime/NPoco

Simple microORM that maps the results of a query onto a POCO object. Project based on Schotime's branch of PetaPoco

c-sharpdatabasemicro-ormnpocopetapoco
GitHub stars
880
Forks
310
Open issues
46
NuGet downloads
21,823,377
latest 6.3.0
License
Apache-2.0
Language
C#
Last push
1 month ago
5 Sept 2026
Created
19 Apr 2012

NPoco

NuGet

Welcome to the NPoco! NPoco is a fork of PetaPoco based on Schotime's branch with a handful of extra features.

Getting Started: Your first query

public class User 
{
    public int UserId { get;set; }
    public string Email { get;set; }
}

IDatabase db = new Database("connStringName");
List<User> users = db.Fetch<User>("select userId, email from users");

This works by mapping the column names to the property names on the User object. This is a case-insensitive match.
There is no mapping setup needed for this (query only) scenario.

Checkout the Wiki for more documentation.