一:首先安装如下包
- Dapper
- Dapper.Contrib
- Microsoft.Extensions.Options
- System.Data.SqlClient
二:封装
public class DapperContext : IDisposable
{
private IDbConnection Connection = null;
public
标签:高级班,14,System,private,DapperContext,108,Dapper,public
来源: https://blog.csdn.net/zhaoxi2020/article/details/118719231