public Repository(VictoriousEntities _context)
 {
     this.context = _context;
     context.Configuration.AutoDetectChangesEnabled = true;
     this.dbSet = context.Set <TEntity>();
 }
 public void UpdateDetachCheck(TEntity entity)
 {
     context.Set <TEntity>().AddOrUpdate(entity);
 }