Example #1
0
        public NHibernateProvider(NameValueCollection settings)
        {
            _kernel   = new StandardKernel(new NHibernateModule());
            _settings = _kernel.Get <NHibernateSettings>();
            _settings.AppendSettings(settings);

            Directory.SetCurrentDirectory(_settings["BaseDirectoryPath"]);
        }
Example #2
0
 public EntityGenerator(NHibernateSettings settings)
 {
     _settings = settings;
 }