Example #1
0
        public async Task UpdateAsync(Game updatedGame)
        {
            var oldGenres = await _context.GameGenres.Where(gg => gg.GameID == updatedGame.ID).ToListAsync();

            UpdateManyToManyRelation(oldGenres, updatedGame.Genres);

            _context.Update(updatedGame);

            await _context.SaveChangesAsync();
        }
Example #2
0
        public async Task UpdateAsync(Priority priority)
        {
            context.Update(priority);

            await context.SaveChangesAsync();
        }
Example #3
0
        public async Task UpdateAsync(WishlistItem wishlistItem)
        {
            context.Update(wishlistItem);

            await context.SaveChangesAsync();
        }
Example #4
0
        public async Task UpdateAsync(Language language)
        {
            context.Update(language);

            await context.SaveChangesAsync();
        }
Example #5
0
        public async Task UpdateAsync(Platform platform)
        {
            context.Update(platform);

            await context.SaveChangesAsync();
        }
Example #6
0
        public async Task UpdateAsync(Series series)
        {
            context.Update(series);

            await context.SaveChangesAsync();
        }
Example #7
0
        public async Task UpdateAsync(Genre genre)
        {
            context.Update(genre);

            await context.SaveChangesAsync();
        }
Example #8
0
        public async Task UpdateAsync(Tag tag)
        {
            context.Update(tag);

            await context.SaveChangesAsync();
        }
Example #9
0
        public async Task UpdateAsync(OwnershipStatus ownershipStatus)
        {
            context.Update(ownershipStatus);

            await context.SaveChangesAsync();
        }
Example #10
0
        public async Task UpdateAsync(MediaType mediaType)
        {
            context.Update(mediaType);

            await context.SaveChangesAsync();
        }
Example #11
0
        public async Task UpdateAsync(Developer developer)
        {
            context.Update(developer);

            await context.SaveChangesAsync();
        }
Example #12
0
        public async Task UpdateAsync(Mode mode)
        {
            context.Update(mode);

            await context.SaveChangesAsync();
        }
Example #13
0
        public async Task UpdateAsync(PlayStatus playStatus)
        {
            context.Update(playStatus);

            await context.SaveChangesAsync();
        }
Example #14
0
        public async Task UpdateAsync(Playthrough playthrough)
        {
            context.Update(playthrough);

            await context.SaveChangesAsync();
        }
Example #15
0
        public async Task UpdateAsync(PlayData playData)
        {
            context.Update(playData);

            await context.SaveChangesAsync();
        }
Example #16
0
        public async Task UpdateAsync(Publisher publisher)
        {
            context.Update(publisher);

            await context.SaveChangesAsync();
        }