/// <summary>
 /// Construye una instancia de UnitOfWork
 /// </summary>
 public UnitOfWork()
 {
     context = new CarteleriaContext();
     this.iBannerRepository = new GenericRepository<Banner>(context);
     this.iCampañaRepository = new GenericRepository<Campaña>(context);
     this.iImagenRepository = new GenericRepository<Imagen>(context);
     this.iInformacionAdicionalRepository = new GenericRepository<InformacionAdicional>(context);
     this.iRangoFechaRepository = new GenericRepository<RangoFecha>(context);
     this.iRangoHorarioRepository = new GenericRepository<RangoHorario>(context);
 }
Esempio n. 2
0
 /// <summary>
 /// Construye una instancia de UnitOfWork
 /// </summary>
 public UnitOfWork()
 {
     context = new CarteleriaContext();
     this.iBannerRepository       = new GenericRepository <Banner>(context);
     this.iCampañaRepository      = new GenericRepository <Campaña>(context);
     this.iImagenRepository       = new GenericRepository <Imagen>(context);
     this.iRangoFechaRepository   = new GenericRepository <RangoFecha>(context);
     this.iRangoHorarioRepository = new GenericRepository <RangoHorario>(context);
     this.iFuenteRepository       = new GenericRepository <Fuente>(context);
 }
Esempio n. 3
0
 /// <summary>
 /// Construye una instancia de GenericRepsitory
 /// </summary>
 public GenericRepository(CarteleriaContext context)
 {
     this.context = context;
     this.dbSet   = this.context.Set <TEntity>();
     Queryable    = this.context.Set <TEntity>();
 }