Created
December 7, 2011 17:41
-
-
Save johnallers/1443759 to your computer and use it in GitHub Desktop.
Registering generic types using Unity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IUnityContainer container = new UnityContainer(); | |
container.RegisterType(typeof(IRepository<>), typeof(EfRepository<>)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment