Пример #1
0
        public TrainingDayManager(ApplicationDbContext dbContext) : base(dbContext)
        {
            _trainingDayModule = new TrainingDayModule(DbContext);

            _trainingExercisesService = WebAppConfiguration.ServiceProvider.GetService <ITrainingExercisesService>();
            _userInfosService         = WebAppConfiguration.ServiceProvider.GetService <IUserInfosService>();
            ((BodyReportService)_trainingExercisesService).SetDbContext(DbContext); // for use same transaction
        }
 public TrainingDayManager(SQLiteConnection dbContext) : base(dbContext)
 {
     _trainingDayModule = new TrainingDayModule(DbContext);
 }
Пример #3
0
 public TrainingDayManager(ApplicationDbContext dbContext) : base(dbContext)
 {
     _trainingDayModule = new TrainingDayModule(DbContext);
     _userInfosService  = new UserInfoService(DbContext);
 }