#IDependency

IDependency自动注册autofac

ContainerBuilderbuilder=newContainerBuilder();builder.RegisterGeneric(typeof(Repository<,>)).As(typeof(IRepository<,>));TypebaseType=typeof(IDepende...