Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有任何框架允许数据驱动的依赖注入(理想情况下在 .NET 中)?例如,我在想一些受 Spring.NET 启发的东西,在结构化数据库表中配置对象图,而不是使用 XML 配置文件。在数据库而不是 XML 文件中配置应用程序的优缺点是什么?
这是.Net IOC 框架的列表
还有一个我喜欢的微软模式和实践...... Unity
Autofac有modules的概念,它允许你有条件地配置容器中的注册。
模块还允许重复使用相关的注册集。