views:

83

answers:

2

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?

+1  A: 

Here is a list of .Net IOC Frameworks

and one right out microsoft's patterns and practices that I like... Unity

J.13.L
Thanks for the link, I'll look into those
Andy White
+1  A: 

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