Beispiel #1
0
        public ModernCmsUow(IDbContext dbContext = null)
        {
            this.dbContext = dbContext;

            ConfigureDbContext(this.dbContext);

            var repositoryProvider = new RepositoryProvider(new RepositoryFactories());

            repositoryProvider.dbContext = this.dbContext;

            RepositoryProvider = repositoryProvider;
        }
Beispiel #2
0
 protected T GetRepo <T>() where T : class
 {
     return(RepositoryProvider.GetRepository <T>());
 }
Beispiel #3
0
 protected IRepository <T> GetStandardRepo <T>() where T : class
 {
     return(RepositoryProvider.GetRepositoryForEntityType <T>());
 }