From b9dc0062241f4dcf5221808d97a7e4c337a8b6cc Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 2 Feb 2020 14:35:30 +0800 Subject: Add timeline service. --- Timeline/Entities/TimelineEntity.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Timeline/Entities/TimelineEntity.cs') diff --git a/Timeline/Entities/TimelineEntity.cs b/Timeline/Entities/TimelineEntity.cs index c50fe6dd..0b252bab 100644 --- a/Timeline/Entities/TimelineEntity.cs +++ b/Timeline/Entities/TimelineEntity.cs @@ -6,7 +6,8 @@ using Timeline.Models.Http; namespace Timeline.Entities { - [System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "This is entity object.")] +#pragma warning disable CA2227 // Collection properties should be read only + // TODO: Create index for this table. [Table("timelines")] public class TimelineEntity { @@ -38,4 +39,5 @@ namespace Timeline.Entities public List Posts { get; set; } = default!; } +#pragma warning restore CA2227 // Collection properties should be read only } -- cgit v1.2.3