Exemplo n.º 1
0
        void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            AreaRegistration.RegisterAllAreas();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            // Database.SetInitializer<DataContext>(new DataContext());
            DataContext context = new DataContext();
            context.Database.Initialize(true);
        }
Exemplo n.º 2
0
 public MatchRepository(DataContext context)
 {
     this.context = context;
 }