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