コード例 #1
0
 //CREATE THE CONTRUCTORS
 public GenericRepository(DB_WEBAPIEntities contextEntities)
 {
     ContextEntities = contextEntities;
     DbSet           = contextEntities.Set <TEntity>();
 }
コード例 #2
0
 //contructor
 public UnitOfWork()
 {
     _context = new DB_WEBAPIEntities();
 }