public TrainingExerciseManager(ApplicationDbContext dbContext) : base(dbContext)
        {
            _trainingExerciseModule    = new TrainingExerciseModule(DbContext);
            _trainingExerciseSetModule = new TrainingExerciseSetModule(DbContext);

            _userInfosService = WebAppConfiguration.ServiceProvider.GetService <IUserInfosService>();
            ((BodyReportService)_userInfosService).SetDbContext(DbContext); // for use same transaction
        }
Exemple #2
0
 public TrainingExerciseManager(ApplicationDbContext dbContext) : base(dbContext)
 {
     _trainingExerciseModule     = new TrainingExerciseModule(DbContext);
     _trainingExerciseSetManager = new TrainingExerciseSetManager(DbContext);
 }
Exemple #3
0
 public TrainingExerciseManager(SQLiteConnection dbContext) : base(dbContext)
 {
     _trainingExerciseModule     = new TrainingExerciseModule(DbContext);
     _trainingExerciseSetManager = new TrainingExerciseSetManager(DbContext);
 }