Skip to content
项目

关于

简单的 microORM,将查询结果映射到 POCO 对象。项目基于 Schotime 的 PetaPoco 分支。

数据与分析

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
-3

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

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.

探索相关项目

加载中…