NHibernateBoxTransformation <G, GE> CreateNestedTransformer <G, GE>(BoxImporterStrategy strat)
            where G : EntityBoxMap
            where GE : Entity
        {
            var transformer = new NHibernateBoxTransformation <G, GE>(_context, _repoFinder, _log, _tree);

            transformer.ImportStrategy = strat;
            return(transformer);
        }
Exemple #2
0
        public NHibernateFileBackupBase(
            FileBoxTransformation <T> fileTransform,
            NHibernateBoxTransformation <T, TE> dbTransform)
        {
            _fileTransform = fileTransform;
            _dbTransform   = dbTransform;

            GetEntitiesToBackup = new Func <IRepository <TE>, IList <TE> >(repo => repo.GetAll());
            ImportStrategy      = BoxImporterStrategy.SkipExisting;
        }