首页 > 解决方案 > 未创建动态 Web API 控制器

问题描述

我正在尝试在现有的 Web 应用程序上添加新的 IApplicationService,但 ABP 没有注册

这是我的代码

界面

    public interface iElementAppService:  IApplicationService
    {
        Task<long> CountElementsAsync();
    }

执行

public class GretaAppService : BBWP_ABP_MPA_EFAppServiceBase, iElementAppService
    {
        public Task<long> CountElementsAsync()
        {
            throw new NotImplementedException();
        }
        public GretaAppService()
        {

        }

我的所有其他动态 web api 控制器都是创建的,除了这个

标签: aspnetboilerplate

解决方案


通过将 iElementAppService 接口的字母 i 大写为 IElementAppService 来解决问题:(


推荐阅读