diff options
author | crupest <crupest@outlook.com> | 2021-02-11 20:10:56 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-11 20:10:56 +0800 |
commit | 840927cc6fe826f25de165da84876e8e676106a8 (patch) | |
tree | 11088ce58b74c1e829eb71056319a5c4a91339a6 /BackEnd/Timeline/Entities | |
parent | 02beb8b7fa3b8e5fe33307dd63de92d1c9bfaf0a (diff) | |
download | timeline-840927cc6fe826f25de165da84876e8e676106a8.tar.gz timeline-840927cc6fe826f25de165da84876e8e676106a8.tar.bz2 timeline-840927cc6fe826f25de165da84876e8e676106a8.zip |
...
Diffstat (limited to 'BackEnd/Timeline/Entities')
-rw-r--r-- | BackEnd/Timeline/Entities/TimelinePostDataEntity.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/BackEnd/Timeline/Entities/TimelinePostDataEntity.cs b/BackEnd/Timeline/Entities/TimelinePostDataEntity.cs index 6ae8fd24..9bc5d3e8 100644 --- a/BackEnd/Timeline/Entities/TimelinePostDataEntity.cs +++ b/BackEnd/Timeline/Entities/TimelinePostDataEntity.cs @@ -10,11 +10,12 @@ namespace Timeline.Entities [Column("id"), Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
+ [Required]
[Column("post")]
public long PostId { get; set; }
[ForeignKey(nameof(PostId))]
- public TimelinePostEntity Timeline { get; set; } = default!;
+ public TimelinePostEntity Post { get; set; } = default!;
[Column("index")]
public long Index { get; set; }
|