aspnetboilerplate - 未创建动态 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 控制器都是创建的,除了这个
解决方案
通过将 iElementAppService 接口的字母 i 大写为 IElementAppService 来解决问题:(
推荐阅读
- azure - 如何访问 Azure 上的站点文件
- docker - 无法通过 HTTP 请求从单独的容器访问 Jenkins 容器
- r - 在 R 中读取向量的元素时出错
- sql - 下表的 SQL 查询
- node.js - 使用redis brpop时节点内存泄漏
- c# - Microsoft 安装程序项目错误
- awk - bash 或 awk - 从复杂数据集中生成报告
- python - 如何确保首先找到我的 python venv 中的包(在 PYTHONPATH 之前)
- javascript - 按下删除按钮不会删除项目而按下删除按钮不会删除项目的主要原因是什么?
- javascript - 如何使用 javascript 将 textarea 转换为显示其他内容(例如 base64 解密)?