public void DeleteMatchup(long gameId) { Db_LccBasicMatchInfo matchup = _lccDatabaseContext.Matchups.Include(r => r.LosingTeamChampions).Include(x => x.WinningTeamChampions).FirstOrDefault(x => x.GameId == gameId); if (matchup != null) { _lccDatabaseContext.Matchups.Remove(matchup); } }
public void UpdateMatchup(Db_LccBasicMatchInfo matchup) { _lccDatabaseContext.Entry(matchup).State = EntityState.Modified; }
public void InsertMatchup(Db_LccBasicMatchInfo match) { _lccDatabaseContext.Matchups.Add(match); }