Ejemplo n.º 1
0
 public CustomAOPInterception(ISqlDapperService _SqlDapperService)
 {
     this.SqlDapperService = _SqlDapperService;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 构造函数注入ISqlDapperService
 /// </summary>
 /// <param name="Configuration"></param>
 /// <param name="SqlDapperService"></param>
 public TestService(IConfiguration Configuration, ISqlDapperService SqlDapperService)
 {
     configuration = Configuration;
     _SqlDapper    = SqlDapperService;//数据库操作接口,由AutoFac 创建
 }