Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     NHibernateManager.Initialize(ShowSql.FormattedSql);
     NHibernateManager.UpdateSchema();
     //NHibernateManager.CreateSchema();
     //NHibernateManager.GenerateScriptFile("C:\\scripts", true);
     //NHibernateManager.DropSchema();
 }
Ejemplo n.º 2
0
        protected void Application_Start()
        {
            Logger.ConfigureLog4Net(HttpContext.Current.Server.MapPath("~/log"), LogLevel.Info, LogLevel.Info);

            NHibernateManager.Configuration();
            NHibernateManager.UpdateSchema();

            AHSContainer.RegisterControllers(Assembly.GetExecutingAssembly());
            AHSContainer.SetResolver();

            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
        }