Are there any frameworks out there that allow for data-driven dependency injection (ideally in .NET)? I'm thinking something inspired by Spring.NET for example, where you configure your object graphs in structured database tables, rather than using an XML config file. What would be the pros and cons of configuring your application in the database rather than an XML file?
Asked
Active
Viewed 368 times
1
-
have you looked an Ninject? Not sure if it does what you want, but it's pretty configurable. – Robert Jun 02 '09 at 04:40
-
Ninject uses a fluent interface instead of XML. It sounds intriguing. Robert, post an answer so you can get points! – Robert Harvey Jun 02 '09 at 05:09
2 Answers
1
Here is a list of .Net IOC Frameworks
and one right out microsoft's patterns and practices that I like... Unity

bytebender
- 7,371
- 2
- 31
- 54
1
Autofac has the concept of modules, which allow you to conditionally configure the registrations in the container.
Modules also allow re-use of related sets of registrations.

Bryan Watts
- 44,911
- 16
- 83
- 88