Пример #1
0
 public BaseRepository(LearnToLearnContext db)
 {
     this._db = db;
     _table   = db.Set <T>();
 }
Пример #2
0
        public Repository(LearnToLearnContext context)
        {
            this.context = context;

            entitySet = context.Set <T>();
        }
Пример #3
0
 public BaseRepository()
 {
     this._db = new LearnToLearnContext();
     _table   = _db.Set <T>();
 }