In my ASP.NET MVC 4 c# project I have 3 layers. Data, Business and Web. I follow repository pattern and services.
I use Autofac for dependency injection. What I did was registering components in global.asax. By this way, I had to reference my Data layer where I implemented repositories.
I think this breaks the rule, because my web project has a reference of data layer.
I have read some articles on solving this problem, and found Autofac Modules. However, I couldn't find a method to implement it without referencing data layer as well.
Is there a way to register the components without referencing data layer?
Thank you.