diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-28 15:45:21 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2025-08-20 00:48:43 +1000 |
| commit | aec195eff8a62bfdeb58f98f90b894f5f673360d (patch) | |
| tree | 641c0771a5314be07c96ac705f8c12ed0a898287 /Tag.cs | |
| parent | a1146209ad587bc1af93b2b643d63d41444b9029 (diff) | |
Gallery media is now filtered by tag using Object IDs rather than Guids, signficantly reducing DB overhead
Diffstat (limited to 'Tag.cs')
| -rw-r--r-- | Tag.cs | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -18,9 +18,11 @@ public class TagDefinition : HBObject { } public class Tag : HBObject { - public virtual TagDefinition TagDefinition { get; set; } - public DateTime CreateTime { get; set; } = DateTime.UtcNow; - public virtual HBObject Target { get; set; } + [ForeignKey("ObjectId")] + public int TagDefinitionId { get; set; } + public virtual TagDefinition TagDefinition { get; set; } + public DateTime CreateTime { get; set; } = DateTime.UtcNow; + public virtual HBObject Target { get; set; } public Tag() {} |
