public static void Initialize()
 {
     System.Data.Entity.Database.SetInitializer(new DailyPlanningDBInitializer());
     using (var db = new DailyPlanningContext())
     {
         db.Database.Initialize(false);
     }
 }
Exemple #2
0
 public TimeSheetsController(DailyPlanningContext dbContext, IMapper mapper)
 {
     this.dbContext = dbContext;
     this.mapper    = mapper;
 }
 public HomeController(DailyPlanningContext context)
 {
     this.context = context;
 }
 public WorkItemController(DailyPlanningContext dbContext, IMapper mapper)
 {
     this.dbContext = dbContext;
     this.mapper    = mapper;
 }
Exemple #5
0
 public DailyPlanController(DailyPlanningContext context, IMapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }
 public ProjectController(DailyPlanningContext dbContext, IMapper mapper)
 {
     this.dbContext = dbContext;
     this.mapper    = mapper;
 }