// container.Register(typeof(IRepository<>), typeof(AzureRepository<>)).AsMultiInstance();
// container.Register(typeof (IService<TEntity>), typeof ()).AsPerRequestSingleton();
// Unity -- container.RegisterType<IUnitOfWorkAsync, UnitOfWork>(new PerRequestLifetimeManager())
//container.Register(typeof(IDataContextAsync), typeof(SanlaanContext)).AsPerRequestSingleton();
//container.Register(typeof (IUnitOfWorkAsync), typeof (UnitOfWork)).AsPerRequestSingleton();
//container.Register(typeof(IRepositoryAsync<>), typeof(Repository<>)).AsPerRequestSingleton();
//container.Register(typeof(IService<Item>), typeof(ItemService)).AsPerRequestSingleton();
Created
October 25, 2014 03:49
-
-
Save stormwild/0a017900d7c79161602b to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment