From 03549a181521009baf6d353a98f4cb8804602cdc Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Tue, 20 Aug 2019 23:41:36 +0800 Subject: Use etag for cache. --- Timeline/Entities/UserAvatar.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Timeline/Entities') diff --git a/Timeline/Entities/UserAvatar.cs b/Timeline/Entities/UserAvatar.cs index b941445d..d549aea5 100644 --- a/Timeline/Entities/UserAvatar.cs +++ b/Timeline/Entities/UserAvatar.cs @@ -16,6 +16,9 @@ namespace Timeline.Entities [Column("type")] public string Type { get; set; } + [Column("etag"), MaxLength(30)] + public string ETag { get; set; } + [Column("last_modified"), Required] public DateTime LastModified { get; set; } @@ -28,6 +31,7 @@ namespace Timeline.Entities Id = 0, Data = null, Type = null, + ETag = null, LastModified = lastModified }; } -- cgit v1.2.3