Class IconSettingsEntity
The site's icon settings, as one document.
public record IconSettingsEntity : EntityBase, ISupportInitialize, IEquatable<PersistableEntityBase>, IEntity<ObjectId>, IEquatable<EntityBase<ObjectId>>, IEquatable<EntityBase>, IEquatable<IconSettingsEntity>
- Inheritance
-
PersistableEntityBaseEntityBase<ObjectId>EntityBaseIconSettingsEntity
- Implements
-
IEquatable<PersistableEntityBase>IEntity<ObjectId>IEquatable<EntityBase>
- Inherited Members
-
EntityBase.ToString()EntityBase.GetHashCode()EntityBase.Equals(EntityBase<ObjectId>)EntityBase.Equals(EntityBase)EntityBase.<Clone>$()EntityBase.EqualityContractEntityBase<ObjectId>.Equals(PersistableEntityBase)EntityBase<ObjectId>.IdPersistableEntityBase.NeedsCleaning()PersistableEntityBase.BeginInit()PersistableEntityBase.EndInit()PersistableEntityBase.CatchAll
Remarks
There is exactly one of these, pinned by SingletonKey and a unique index on Key. Settings are site-level rather than per team, so there is no tenant to key by — and a fixed key means a save replaces rather than accumulates, which a generated id would not.
Fields
SingletonKey
The key every icon-settings document carries, because there is only one.
public const string SingletonKey = "site"
Field Value
Properties
AllowAdminUpload
public bool AllowAdminUpload { get; init; }
Property Value
AllowUserUpload
public bool AllowUserUpload { get; init; }
Property Value
ChangedUtc
When it was last changed (UTC).
public DateTime ChangedUtc { get; init; }
Property Value
Remarks
Who changed it is deliberately not here: the audit log is the record of that, as it is for every other administrative act in the toolkit, and a second half-kept copy on the document would be the one people read and the one that goes stale.
DefaultUserIconUrl
public string DefaultUserIconUrl { get; init; }
Property Value
GravatarEnabled
public bool GravatarEnabled { get; init; }
Property Value
GravatarStyle
One of All, stored as the string Gravatar itself uses.
public string GravatarStyle { get; init; }
Property Value
Key
Always SingletonKey.
public required string Key { get; init; }