Пример #1
0
 public GenericRepository(ShibuyaDBEntities context)
 {
     this.context = context;
     this.dbSet   = context.Set <T>();
 }
Пример #2
0
 public GenericRepository()
 {
     this.context = new ShibuyaDBEntities();
     dbSet        = context.Set <T>();
 }