.Net简单的微ORM框架:NPoco

网友投稿 574 2022-10-20

.Net简单的微ORM框架:NPoco

.Net简单的微ORM框架:NPoco

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 users = db.Fetch("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.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:RestTemplate如何通过HTTP Basic Auth认证示例说明
下一篇:ESTL表达式(一)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~