摘要: 在使用AddScoped、AddTransient、AddSingleton这类进行依赖注入时,每增加一个接口和实现类时,都需要在startup下注册一条,是不是很麻烦呢?下面来看看怎么实现批量注入 1.新增ServiceExtention扩展类 public static class Servic 阅读全文
posted @ 2022-05-25 10:24 Zeng。 阅读(415) 评论(0) 推荐(0) 编辑