Ejemplo n.º 1
0
 protected void Application_Start()
 {
     using (var db = new ShortLinksContext())
     {
         db.Database.Initialize(true);
         Database.SetInitializer(new DbInitializer());
     }
     AreaRegistration.RegisterAllAreas();
     GlobalConfiguration.Configure(WebApiConfig.Register);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
 }
 public LinksRepository()
 {
     context = new ShortLinksContext();
 }