然后在MVC下用nuget 添加autofac,autofac.mvc5(这个5或者4啥的根据自己的项目版本号来) 插件. 然后在global**册到ioc容器中. public class MvcApplication : System.
確定! 回上一頁