abp framework, abp.dapper repository is empty

A framework is encapsulated, and dapper is used in it. It is found that there is no problem in the test of the framework, but when it is used in the project, it is found that the repository of dapper is null.

By looking at IocManager.Instance I found that dapper was not injected.

 

The project is generated through the template of the abp official website.

 

In the end, it was found that dapper needs to rely on ef core first and then on dapper. The dependencies in the XXX.Web.Core class library can be changed to the following figure.

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324978563&siteId=291194637