Esempio n. 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();
        }
Esempio n. 2
0
        public async Task UpdateAsync(Priority priority)
        {
            context.Update(priority);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            await context.SaveChangesAsync();
        }