Example #1
0
        private SchemaBuilder CreateSchemaBuilder(ICustomSessionFactoryHolder sessionFactoryHolder, string featurePrefix = null, Func <string, string> formatPrefix = null)
        {
            ISessionLocator sessionLocator           = new CustomSessionLocator(sessionFactoryHolder, false);
            var             dataMigrationInterpreter = new DefaultDataMigrationInterpreter(_shellSettings, sessionLocator, new List <ICommandInterpreter>(), sessionFactoryHolder, _reportsCoordinator);

            return(new SchemaBuilder(dataMigrationInterpreter, featurePrefix, formatPrefix));
        }
Example #2
0
        private IRepository <T> CreateRepository <T>(ICustomSessionFactoryHolder sessionFactoryHolder) where T : class
        {
            ISessionLocator sessionLocator = new CustomSessionLocator(sessionFactoryHolder, false);

#if JsonDataRepository
            IRepository <T> repository = new Repository <T>(sessionLocator, _shellSettings, _shellBlueprint, _appDataFolder, _jsonDataRepositoryFactoryHolder);
#else
            IRepository <T> repository = new Repository <T>(sessionLocator);
#endif
            return(repository);
        }
 private SchemaBuilder CreateSchemaBuilder(ICustomSessionFactoryHolder sessionFactoryHolder, string featurePrefix = null, Func<string, string> formatPrefix = null)
 {
     ISessionLocator sessionLocator = new CustomSessionLocator(sessionFactoryHolder, false);
     var dataMigrationInterpreter = new DefaultDataMigrationInterpreter(_shellSettings, sessionLocator, new List<ICommandInterpreter>(), sessionFactoryHolder, _reportsCoordinator);
     return new SchemaBuilder(dataMigrationInterpreter, featurePrefix, formatPrefix);
 }