Beispiel #1
0
        public static void Init()
        {
            Configuration configuration = new Configuration().Configure();

            using (UnitOfWork.Start())
            {
                new SchemaExport(configuration)
                .Execute(false, true, false, true, UnitOfWork.CurrentSession.Connection, null);
                SampleDataGenerator.LoadSampleData();
            }
        }
Beispiel #2
0
        public void Application_Start(object sender, EventArgs e)
        {
            var builder = new ContainerBuilder();

            log4net.Config.XmlConfigurator.Configure();
            InitializeServiceLocator(builder);
            var container = builder.Build();

            DependencyResolver.SetResolver(new AutofacDependencyResolver(container));

            RegisterRoutes(RouteTable.Routes);
            SampleDataGenerator.LoadSampleData();
        }
Beispiel #3
0
 private static void LoadData()
 {
     // TODO store Sample* and object instances here instead of handwritten SQL
     SampleDataGenerator.LoadSampleData();
 }