protected void Application_Start() { AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); using (var ctx = new DBBase()) { ctx.Database.Delete(); User usr = new User() { Name = "Mall Mets" }; Group grp = new Group() { Name = "koogigrupp" }; Status stts = new Status() { Name = "Busy" }; ctx.Users.Add(usr); ctx.Groups.Add(grp); ctx.Statuses.Add(stts); ctx.SaveChanges(); } }