public void UpdateContinentPollution(ContinentPollution continentPollution) { string sql = "update ContinentPollution set Pollution = @Pollution, Year = @Year, ContinentId = @ContinentId where Id = @Id"; db.Execute(sql, new { continentPollution.Pollution, continentPollution.Year, continentPollution.ContinentId, continentPollution.ID }); }