public void Insert(PlanetColours entity) { var sql = $@"Insert Into PlanetColours(@PlanetTypeId,@ColourId,@ColourTypeId)"; _connection.Execute(sql, new { entity.PlanetTypeId, entity.ColourId, entity.ColourTypeId }); }
public void Delete(PlanetColours entity) { var sql = $@"Delete from PlanetColours where PlanetColours.Id = {entity.Id}"; _connection.Execute(sql); }