Ejemplo n.º 1
0
 public BaseRepository()
 {
     db    = new MusicSchoolContext();
     table = db.Set <TEntity>();
 }
Ejemplo n.º 2
0
        private MusicSchoolContext _musicSchoolContext;    //injectam in Repo MusicDbcontext

        public TeacherRepository(MusicSchoolContext musicSchoolContext)
        {
            _musicSchoolContext = musicSchoolContext;    //se injecteaza datele in parametrul musicSchoolContext
        }
Ejemplo n.º 3
0
 public FeedbackRepository(MusicSchoolContext FeedbackContext)
 {
     _FeedbackContext = FeedbackContext;//se injecteaza datele in parametrul musicSchoolContext
 }
Ejemplo n.º 4
0
 public CoursesRepository(MusicSchoolContext musicSchoolContext)//injectam in Repo Dbcontext
 {
     _musicSchoolContext = musicSchoolContext;
 }