コード例 #1
0
        public void Execute()
        {
            var defaultBaseType   = typeof(XpoRepository <>);
            var constructorParams = new Type[] { typeof(ISessionManager) };

            RepositoryGenerator.GenerateRepositories(dependencyResolver, defaultBaseType, constructorParams, _appDomainHelpers);
        }
コード例 #2
0
        public void Execute()
        {
            var orm = ConfigurationManager.AppSettings["BoC.Persistence.Orm"];

            if (orm != null && !orm.Equals("umbracoglass", StringComparison.InvariantCultureIgnoreCase))
            {
                return;
            }

            var defaultBaseType   = typeof(UmbracoRepository <>);
            var constructorParams = new[] { typeof(IUmbracoServiceProvider) };

            RepositoryGenerator.GenerateRepositories(_dependencyResolver, defaultBaseType, constructorParams);
        }
コード例 #3
0
        public void Execute()
        {
            var orm = ConfigurationManager.AppSettings["BoC.Persistence.Orm"];

            if (orm != null && !orm.Equals("db4o", StringComparison.InvariantCultureIgnoreCase))
            {
                return;
            }

            var defaultBaseType   = typeof(Db4oRepository <>);
            var constructorParams = new[] { typeof(ISessionManager) };

            RepositoryGenerator.GenerateRepositories(_dependencyResolver, defaultBaseType, constructorParams, _appDomainHelpers);
        }
コード例 #4
0
        public void Execute()
        {
            var orm = ConfigurationManager.AppSettings["BoC.Persistence.Orm"];

            if (orm != null && !orm.Equals("sitecoreglass", StringComparison.InvariantCultureIgnoreCase))
            {
                return;
            }

            var defaultBaseType   = typeof(SitecoreRepository <>);
            var constructorParams = new[] { typeof(IDatabaseProvider), typeof(ISitecoreServiceProvider), typeof(IProviderSearchContextProvider), typeof(ILogger) };

            RepositoryGenerator.GenerateRepositories(dependencyResolver, defaultBaseType, constructorParams, _appDomainHelpers);
        }