diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-20 23:41:36 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-20 23:41:36 +0800 |
commit | 03549a181521009baf6d353a98f4cb8804602cdc (patch) | |
tree | 4554d77dcf4e10cdfa9955e496c0ede22788448a /Timeline/Entities | |
parent | 7814ed7059f74cfecfa8a0c9aa4f9946d1015364 (diff) | |
download | timeline-03549a181521009baf6d353a98f4cb8804602cdc.tar.gz timeline-03549a181521009baf6d353a98f4cb8804602cdc.tar.bz2 timeline-03549a181521009baf6d353a98f4cb8804602cdc.zip |
Use etag for cache.
Diffstat (limited to 'Timeline/Entities')
-rw-r--r-- | Timeline/Entities/UserAvatar.cs | 4 |
1 files changed, 4 insertions, 0 deletions
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
};
}
|