摘要:
创建实例方法 1、InstancePerDependency 对每一个依赖或每一次调用创建一个新的唯一的实例。这也是默认的创建实例的方式。 官方文档解释:Configure the component so that every dependent component or call to Reso 阅读全文
摘要:
在Global.asax.cs 里注册 using System.Web.Mvc; using Autofac; using Autofac.Integration.Mvc; using System.Reflection; using Gxrc.DATA; using Gxrc.Model.Map 阅读全文