Table of Contents

Class IconSettingsEntity

Namespace
Tharga.Team.MongoDB
Assembly
Tharga.Team.MongoDB.dll

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
PersistableEntityBase
EntityBase<ObjectId>
EntityBase
IconSettingsEntity
Implements
IEquatable<PersistableEntityBase>
IEntity<ObjectId>
IEquatable<EntityBase<ObjectId>>
IEquatable<EntityBase>
Inherited Members
EntityBase.ToString()
EntityBase.GetHashCode()
EntityBase.Equals(EntityBase<ObjectId>)
EntityBase.Equals(EntityBase)
EntityBase.<Clone>$()
EntityBase.EqualityContract
EntityBase<ObjectId>.Equals(PersistableEntityBase)
EntityBase<ObjectId>.Id
PersistableEntityBase.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

string

Properties

AllowAdminUpload

public bool AllowAdminUpload { get; init; }

Property Value

bool

AllowUserUpload

public bool AllowUserUpload { get; init; }

Property Value

bool

ChangedUtc

When it was last changed (UTC).

public DateTime ChangedUtc { get; init; }

Property Value

DateTime

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

string

GravatarEnabled

public bool GravatarEnabled { get; init; }

Property Value

bool

GravatarStyle

One of All, stored as the string Gravatar itself uses.

public string GravatarStyle { get; init; }

Property Value

string

Key

Always SingletonKey.

public required string Key { get; init; }

Property Value

string