lemongeek
lemongeek
你好,我照着以上的代码在net core 的webapi中使用使用报错;  StartUp中  调用部分:  请问是调用那里出的错吗?还是仅可以在mvc中controller中调用?
多谢,我尝试 了加入demo中的InitIoC ()并进行删减,并放置在步骤【注入DbContextOption】代码前。此时提示的是“未能获取到数据库上下文,请先注册数据库上下文。” 我后边继续再研究研究。
一样的被封禁一周了,应该加入了真人/机器行为识别,不能用了,可惜了,