Skip to content
/ NPoco Public
forked from schotime/NPoco

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

Notifications You must be signed in to change notification settings

skozulin/NPoco

This branch is 1 commit ahead of, 142 commits behind schotime/NPoco:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7775ef3 · Jan 29, 2017
Jan 29, 2017
Jan 29, 2017
Apr 20, 2012
Mar 22, 2013
Mar 10, 2016
Apr 13, 2016
Nov 20, 2015
Apr 29, 2012
Apr 20, 2012
May 20, 2016
Jun 28, 2016

Repository files navigation

NPoco

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.

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.9%
  • Other 0.1%