Skip to content

Commit 76b4c2e

Browse files
committed
🗃️ Make CurrentEditionId nullable in Event entity
1 parent 6e1aae7 commit 76b4c2e

File tree

6 files changed

+1120
-10
lines changed

6 files changed

+1120
-10
lines changed

TaleEngine/TaleEngine.API.Contracts/Dtos/EditionInEventDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace TaleEngine.API.Contracts.Dtos {
22
public class EditionInEventDto {
3-
public int EditionId { get; set; }
3+
public int? EditionId { get; set; }
44
public int EventId { get; set; }
55
public string EventTitle { get; set; }
66
}

TaleEngine/TaleEngine.Data.Contracts/Entities/EventEntity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ public class EventEntity : BaseEntity
88

99
public List<EditionEntity> Editions { get; set; }
1010

11-
public int CurrentEditionId { get; set; }
12-
public EditionEntity CurrentEdition { get; set; }
11+
public int? CurrentEditionId { get; set; }
12+
public EditionEntity? CurrentEdition { get; set; }
1313

1414
public List<RoleEntity> Roles { get; set; }
1515
}

0 commit comments

Comments
 (0)