Example #1
0
 public GenericRepository(ServicioContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }
Example #2
0
        //284
        #endregion

        #region Develop1 = Leo - 287
        //288

        #region REGION AUXILIAR



        #endregion
        //1074
        #endregion



        //public GenericRepository<City> CityRepository
        //{
        //    get
        //    {
        //        if (cityRepository == null)
        //        {
        //            cityRepository = new GenericRepository<City>(context);
        //        }
        //        return cityRepository;
        //    }
        //    set
        //    {
        //        cityRepository = value;
        //    }
        //}
        //public GenericRepository<Book> BookRepository
        //{
        //    get
        //    {
        //        if (bookRepository == null)
        //        {
        //            bookRepository = new GenericRepository<Book>(context);
        //        }
        //        return bookRepository;
        //    }

        //    set
        //    {
        //        bookRepository = value;
        //    }
        //}
        //public IAuthorRepository AuthorRepository
        //{
        //    get
        //    {
        //        if (authorRepository == null)
        //        {
        //            authorRepository = new AuthorRepository(context);
        //        }
        //        return authorRepository;
        //    }

        //    set
        //    {
        //        authorRepository = value;
        //    }
        //}

        public UnitOfWork()
        {
            context = new ServicioContext();
        }
Example #3
0
 public CarritoManager(ServicioContext context)
 {
     _context = context;
 }
Example #4
0
 public ServicioManager(ServicioContext context)
 {
     _context = context;
 }
 public CyclesRepository(ServicioContext context) : base(context)
 {
 }
Example #6
0
 public CareersRepository(ServicioContext context) : base(context)
 {
 }
 public PackManager(ServicioContext context)
 {
     _context = context;
 }