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); }
public MatchRepository(DataContext context) { this.context = context; }