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 }
public TrainingExerciseManager(ApplicationDbContext dbContext) : base(dbContext) { _trainingExerciseModule = new TrainingExerciseModule(DbContext); _trainingExerciseSetManager = new TrainingExerciseSetManager(DbContext); }
public TrainingExerciseManager(SQLiteConnection dbContext) : base(dbContext) { _trainingExerciseModule = new TrainingExerciseModule(DbContext); _trainingExerciseSetManager = new TrainingExerciseSetManager(DbContext); }