User479136567 posted
Hi All,
I´ve been checking Microsot Unity IOC and found some examples using Code First approach. On the other hand I cannot find any tutorial or configuration in order to include Unity IoC with edmx files using a database first approach. I will be glad in
anyone could shed some light on it.
Im using http://unitymvc3.codeplex.com/ and using unity 2.1 directly =
http://unity.codeplex.com/
I tried to register my EF data context as a dependency in unity. I have not used unity before so please forgive any minor errors. I tried to do it using and approach like:
container.RegisterType<YourContext>();
using the entity container name as <YourContext> -where I click on the surface and view the properties of the edmx file and took that value- but with no success.
Is this the correct approach?, its ok to register the edmx file as a container.registertype?... thanks in advance.
brgds
sebastian.