Inheritance: IBootStrapper
 private IBootStrapper getBootStrapper(string nhibernateConfiguration)
 {
     if (bootstrapper == null) {
         bootstrapper = new Bootstrapper(nhibernateConfiguration);
         bootstrapper.InitDatalayer();
     }
     return bootstrapper;
 }
        private static void Main(string[] args)
        {
            var builder = new ContainerBuilder();
            var bootstrapper = new Bootstrapper("NHibernate.config");
            bootstrapper.InitDatalayer();

            new ComponentRegistrator().AutofacRegisterComponentes(builder, bootstrapper);
            containerProvider = new ContainerProvider(builder.Build());

            new SchemaExportEngine(bootstrapper).Export();

            Console.WriteLine("");
            Console.WriteLine("Schema export finished. Press any key to continue...");
            Console.ReadLine();
        }
Exemple #3
0
        private Bootstrapper getBootStrapper()
        {
            if (bootstrapper == null) {
                var nhibernateConfig = Server.MapPath("~/bin/NHibernate.config");
                bootstrapper = new Bootstrapper(nhibernateConfig);
            }

            return bootstrapper;
        }
 private void InitializeNHibernate(string nhibernateConfiguration)
 {
     bootstrapper = new Bootstrapper(nhibernateConfiguration);
     bootstrapper.InitDatalayer();
 }