Skip to content

Commit

Permalink
Add Obsolete attribute to Layer and Field classes,
Browse files Browse the repository at this point in the history
and add Note property to Mapset class
  • Loading branch information
yorickdewid committed Apr 24, 2024
1 parent 2564b52 commit 5c28e57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/FunderMaps.Core/Entities/Mapset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace FunderMaps.Core.Entities;

[Obsolete]
public class Layer
{
public string? Id { get; set; }
Expand All @@ -10,6 +11,7 @@ public class Layer
public List<Field> Fields { get; set; } = new();
}

[Obsolete]
public class Field
{
public string? Color { get; set; }
Expand Down Expand Up @@ -63,6 +65,11 @@ public sealed class Mapset : IEntityIdentifier<Guid>
/// </summary>
public string? Consent { get; set; }

/// <summary>
/// Note for the map.
/// </summary>
public string? Note { get; set; }

/// <summary>
/// Unique identifier.
/// </summary>
Expand Down
2 changes: 2 additions & 0 deletions src/FunderMaps.Data/Repositories/MapsetRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public async Task<Mapset> GetPublicAsync2(Guid id)
m.options,
m.public,
m.consent,
m.note,
NULL as fence_municipality,
(
SELECT jsonb_agg(maplayers.layer)
Expand Down Expand Up @@ -66,6 +67,7 @@ public async IAsyncEnumerable<Mapset> GetByOrganizationIdAsync2(Guid id)
m.options,
m.public,
m.consent,
m.note,
o.fence_municipality,
(
SELECT jsonb_agg(maplayers.layer)
Expand Down

0 comments on commit 5c28e57

Please sign in to comment.