Skip to content

Commit

Permalink
Merge pull request #425 from Laixer/feature/buildingtype
Browse files Browse the repository at this point in the history
Change BuildingType enum and add entry to db enum mapper
  • Loading branch information
Patrick Nobbe authored Jan 14, 2021
2 parents a3cc01d + 9190413 commit 28318e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/FunderMaps.Core/Types/BuildingType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ public enum BuildingType
Shed = 1,

/// <summary>
/// House boat.
/// Houseboat.
/// </summary>
HouseBoat = 2,
Houseboat = 2,

/// <summary>
/// Mobile home.
Expand Down
1 change: 1 addition & 0 deletions src/FunderMaps.Data/Providers/NpgsqlDbProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ static NpgsqlDbProvider()
NpgsqlConnection.GlobalTypeMapper.MapEnum<ApplicationRole>("application.role");
NpgsqlConnection.GlobalTypeMapper.MapEnum<AuditStatus>("report.audit_status");
NpgsqlConnection.GlobalTypeMapper.MapEnum<BaseMeasurementLevel>("report.base_measurement_level");
NpgsqlConnection.GlobalTypeMapper.MapEnum<BuildingType>("geocoder.building_type");
NpgsqlConnection.GlobalTypeMapper.MapEnum<BundleStatus>("maplayer.bundle_status");
NpgsqlConnection.GlobalTypeMapper.MapEnum<ConstructionPile>("report.construction_pile");
NpgsqlConnection.GlobalTypeMapper.MapEnum<CrackType>("report.crack_type");
Expand Down
2 changes: 1 addition & 1 deletion tests/FunderMaps.Core.Tests/Entities/BuildingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void ValidateBuilding()
Geometry = "7b2274797065223a224d756c7469506f6c79676f6e222c22636f6f7264696e61746573223a5b5b5b5b352e3833333038343731312c35332e3039333332373638385d2c5b352e3833333033393531392c35332e3039333331343130385d2c5b352e3833333031393439362c35332e30393333333832325d2c5b352e3833323938353930392c35332e3039333332383132385d2c5b352e3833333036303236382c35332e3039333233383438355d2c5b352e38333331333930362c35332e3039333236323136365d2c5b352e3833333038343731312c35332e3039333332373638385d5d5d5d7d",
ExternalId = "external-1",
ExternalSource = ExternalDataSource.NlBag,
BuildingType = BuildingType.HouseBoat,
BuildingType = BuildingType.Houseboat,
NeighborhoodId = "gfm-neighborhood",
};
var entity2 = new Building
Expand Down

0 comments on commit 28318e0

Please sign in to comment.