Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
 public UserEntityRepository(PlayTimeContext context)
 {
     Context = context;
 }
 public ProjectEntityRepository(PlayTimeContext context, IUserRepository userRepository)
 {
     Context        = context;
     UserRepository = userRepository;
 }
 public InvoiceEntityRepository(PlayTimeContext context)
 {
     Context = context;
 }
Esempio n. 5
0
 public TaskEntityRepository(PlayTimeContext context, IUserRepository userRepository, IProjectRepository projectRepository)
 {
     Context           = context;
     UserRepository    = userRepository;
     ProjectRepository = projectRepository;
 }
Esempio n. 6
0
 public RegistrationEntityRepository(PlayTimeContext context)
 {
     Context = context;
 }