使用Autofac配置DbContext注入的正确方法是什么? 使用StructureMap,我可以做到以下几点: For<IDbContext>().Use(x => new Context()); ...
確定! 回上一頁