代码拉取完成,页面将自动刷新
Welcome to the NPoco! NPoco is a fork of PetaPoco based on Schotime's branch with a handful of extra features.
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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。