예제 #1
0
파일: Uow.cs 프로젝트: mediabuff/Olivia
        public Uow(IDbContext dbContext = null)
        {
            this.dbContext = dbContext;
            ConfigureDbContext(this.dbContext);
            var repositoryProvider = new RepositoryProvider(new RepositoryFactories());

            repositoryProvider.dbContext = this.dbContext;
            RepositoryProvider           = repositoryProvider;
        }
예제 #2
0
파일: Uow.cs 프로젝트: mediabuff/Olivia
 protected T GetRepo <T>() where T : class
 {
     return(RepositoryProvider.GetRepository <T>());
 }
예제 #3
0
파일: Uow.cs 프로젝트: mediabuff/Olivia
 protected IRepository <T> GetStandardRepo <T>() where T : class
 {
     return(RepositoryProvider.GetRepositoryForEntityType <T>());
 }