Ejemplo n.º 1
0
 /// <summary>
 /// Public Constructor,initializes privately declared local variables.
 /// </summary>
 /// <param name="context"></param>
 public GenericRepository(ProductsContextEntities context)
 {
     this.Context = context;
     this.DbSet   = context.Set <TEntity>();
 }
Ejemplo n.º 2
0
 public UnitOfWork()
 {
     _context = new ProductsContextEntities();
 }