本文共 562 字,大约阅读时间需要 1 分钟。
【 Autofac打标签模式】开源DI框架扩展地址:
属性 | 说明 |
---|---|
Path | 文件路径,看下面的说明 |
OrderIndex | 文件源排序,越大越先作为查找对象 |
Embedded | 是否为内嵌资源 |
[PropertySource("appsettings.json")] //这行也可以直接去掉 因为和默认的一样 [Component] public class Student9 { [Value("${a9}")] public string Name { get; set; } }
转载地址:http://nqmbz.baihongyu.com/