【文件属性】:
文件名称:Dapper.DBContext:像EF这样的勇敢蠕虫
文件大小:29.51MB
文件格式:ZIP
更新时间:2021-05-27 12:15:18
C#
Dapper.DBContext
Dapper.DBContext是基于dapper的orm库。 这将帮助您完成80%的工作。 其余20%的工作(例如多表查询)建议您自己编写SQL。
nuget安装
安装包Dapper.DBContext
快速开始
public enum OrderStatus
{
Create , WaitToPay , Paid
}
// entity
[ Table ( " tb_Order " )]
public class Order : IEntity
{
// default primary key : rule is propertie name Id ,type is int
public int Id { get ; set ; }
public string Code { get ; set ; }
[