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(); }
private void InitializeNHibernate(string nhibernateConfiguration) { bootstrapper = new Bootstrapper(nhibernateConfiguration); bootstrapper.InitDatalayer(); }