protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RouteConfig.RegisterRoutes(RouteTable.Routes); IoC.Container.Build(typeof(MvcApplication)); // Call DB when application starts to trigger pending DB migrations to be applied. using (var db = new PlayTimeContext()) { User first = db.UserSet.First(); } }
public UserEntityRepository(PlayTimeContext context) { Context = context; }
public ProjectEntityRepository(PlayTimeContext context, IUserRepository userRepository) { Context = context; UserRepository = userRepository; }
public InvoiceEntityRepository(PlayTimeContext context) { Context = context; }
public TaskEntityRepository(PlayTimeContext context, IUserRepository userRepository, IProjectRepository projectRepository) { Context = context; UserRepository = userRepository; ProjectRepository = projectRepository; }
public RegistrationEntityRepository(PlayTimeContext context) { Context = context; }