InitDatalayer() 공개 메소드

public InitDatalayer ( ) : void
리턴 void
 private IBootStrapper getBootStrapper(string nhibernateConfiguration)
 {
     if (bootstrapper == null) {
         bootstrapper = new Bootstrapper(nhibernateConfiguration);
         bootstrapper.InitDatalayer();
     }
     return bootstrapper;
 }
예제 #2
0
        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();
        }
 private void InitializeNHibernate(string nhibernateConfiguration)
 {
     bootstrapper = new Bootstrapper(nhibernateConfiguration);
     bootstrapper.InitDatalayer();
 }