Beispiel #1
0
 public virtual void Update(T entity)
 {
     if (entity == null)
     {
         throw new ArgumentNullException("entity");
     }
     try
     {
         Context.Entry(entity).State = EntityState.Detached;
         using (var context = new LookTechno())
         {
             context.Entry(entity).State = EntityState.Modified;
             context.SaveChanges();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #2
0
 public SubscribersService(LookTechno context)
     : base(context)
 {
     _context = context;
     Dbset    = _context.Set <NewsletterSubscriber>();
 }
Beispiel #3
0
 public ProductService(LookTechno context)
     : base(context)
 {
     _context = context;
     Dbset    = _context.Set <Product>();
 }
Beispiel #4
0
 public CategoryService(LookTechno context)
     : base(context)
 {
     _context = context;
     Dbset    = _context.Set <Category>();
 }
Beispiel #5
0
 public CellSettingService(LookTechno context)
     : base(context)
 {
     _context = context;
     Dbset    = _context.Set <CellSetting>();
 }
Beispiel #6
0
 public BrandSliderService(LookTechno context)
     : base(context)
 {
     _context = context;
     Dbset    = _context.Set <Brand>();
 }
Beispiel #7
0
 public MenuService(LookTechno context)
     : base(context)
 {
     _context = context;
     Dbset    = _context.Set <Menu>();
 }
Beispiel #8
0
 public SliderService(LookTechno context)
     : base(context)
 {
     _context = context;
     Dbset    = _context.Set <HomeSlider>();
 }
Beispiel #9
0
 public OurServicesService(LookTechno context)
     : base(context)
 {
     _context = context;
     Dbset    = _context.Set <OurService>();
 }
Beispiel #10
0
 public PageService(LookTechno context)
     : base(context)
 {
     _context = context;
     Dbset    = _context.Set <Page>();
 }
Beispiel #11
0
 public ContactUsService(LookTechno context)
     : base(context)
 {
     _context = context;
     Dbset    = _context.Set <Contatctu>();
 }