Пример #1
0
 protected void Application_Start()
 {
     //自定义加载引擎
     ViewEngines.Engines.Clear();
     ViewEngines.Engines.Add(new MyRazorViewEngine());
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     SimpleCRUD.SetDialect(SimpleCRUD.Dialect.MySQL);
     DbLinkTestService.DbLink();
 }
Пример #2
0
 protected void Application_Start()
 {
     GlobalConfiguration.Configure(WebApiConfig.Register);
     SimpleCRUD.SetDialect(SimpleCRUD.Dialect.MySQL);
     DbLinkTestService.DbLink();
 }