The next generation of the Teknik Services. Written in ASP.NET.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Global.asax.cs 811B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. using System.Web.Optimization;
  7. using System.Web.Routing;
  8. using Teknik.Models;
  9. using System.Data.Entity;
  10. using System.Web.Security;
  11. using Teknik.Migrations;
  12. using System.Data.Entity.Migrations;
  13. namespace Teknik
  14. {
  15. public class MvcApplication : System.Web.HttpApplication
  16. {
  17. protected void Application_Start()
  18. {
  19. Database.SetInitializer(new MigrateDatabaseToLatestVersion<TeknikEntities, Configuration>());
  20. AreaRegistration.RegisterAllAreas();
  21. FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
  22. RouteConfig.RegisterRoutes(RouteTable.Routes);
  23. BundleConfig.RegisterBundles(BundleTable.Bundles);
  24. }
  25. }
  26. }