摘要: 【 Autofac打标签模式】开源DI框架扩展地址: https://github.com/yuzd/Autofac.Annotation/wiki PropertySource 指定数据源 属性说明 Path 文件路径,看下面的说明 OrderIndex 文件源排序,越大越先作为查找对象 Embe 阅读全文
posted @ 2019-10-26 21:46 俞正东 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 【 Autofac打标签模式】开源DI框架扩展地址: https://github.com/yuzd/Autofac.Annotation/wiki Componet标签把类型注册到DI容器 1. 把一个类型注册到DI容器 上面的例子就是把Student类型注册到容器 2. 把当前类型和父类注册到D 阅读全文
posted @ 2019-10-26 13:40 俞正东 阅读(940) 评论(2) 推荐(0) 编辑