Back to list
Views:   2.9K
Replies:  0
Archived

Resolve Class in Different Layers Using UnityContainer


 Hi,

   I am using dependecy injection in Asp.Net MVC 3 with unity container. I register classes in web config and i resolve them in controller initialize method or constructor.  So can i resolve a class in Business Layer, or Service Layer or DataAccess Layer.

 ForExample i register  CustomerDto DataTransferObject    in  Global.asax and  I want to Resolve it in ServiceLayer.  I know that static variables Application Wide so I can access this from EveryWhere in the Application. Am I correct ?


Thanks.


BestRegards.
Volkan Genç, Mar 07, 2013


Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.2.2