Ejemplo n.º 1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            // Use LocalDB for Entity Framework by default
            Database.DefaultConnectionFactory = new SqlConnectionFactory(@"Data Source=(localdb)\v11.0; Integrated Security=True; MultipleActiveResultSets=True");

            var dir = Directory.CreateDirectory(Server.MapPath("~"));

            PutanjaAplikacije.Inicijalizacija(dir.FullName);
            DmsData.Inicijalizacija();

            LogovanjeData.UcitajUlogovaneKorisnike();

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);
        }