//CREATE THE CONTRUCTORS
 public GenericRepository(DB_WEBAPIEntities contextEntities)
 {
     ContextEntities = contextEntities;
     DbSet           = contextEntities.Set <TEntity>();
 }
Пример #2
0
 //contructor
 public UnitOfWork()
 {
     _context = new DB_WEBAPIEntities();
 }