You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for IoC in instantiating Domain Model #1489
With this model, it should be possible to use it in an ORM as it contains everything that is needed. Ideally, it would be great if there was a way to tell EF to use a mapping possible via an IoC container resolution method.
Note: For the sake of simplicity, assume there is a set of concrete classes that implement the above contract model.
Example
var _container = new SimpleInjector.Container();
_container.Register<IUser, DbUser>();
_container,Register<IAddress, DbAdress>();
...
var ctx = new MyDbContext();
ctx.Resolver = (type) => _container.Resolver(type);
Activity
rowanmiller commentedon Jan 30, 2015
This is already tracked by #757 - we do want to support it but it won't be in the initial 7.0.0 RTM.