Table of Contents

Class NotificationSqlModel

Namespace
OpenSettings.Domains.Sql.Entities
Assembly
OpenSettings.dll

Represents a notification entity.

[Table("Notifications")]
public class NotificationSqlModel : EntityBase<Guid>
Inheritance
NotificationSqlModel
Inherited Members

Properties

CreatedBy

The user who created this notification.

[ForeignKey("CreatedById")]
public virtual UserSqlModel CreatedBy { get; set; }

Property Value

UserSqlModel

CreatedById

The id of the user who created this notification.

public Guid? CreatedById { get; set; }

Property Value

Guid?

CreatorName

The name of the user who created this notification.

public string CreatorName { get; set; }

Property Value

string

ExpiredOn

The date and time when the notification was marked as expired.

public DateTime? ExpiredOn { get; set; }

Property Value

DateTime?

ExpiresIn

The duration after which the notification expires. If null, the notification does not expire.

public TimeSpan? ExpiresIn { get; set; }

Property Value

TimeSpan?

IsExpired

Indicates whether the notification has expired.
If true, new user mappings will not be created for this notification.

public bool IsExpired { get; set; }

Property Value

bool

Message

The message content of the notification.

public string Message { get; set; }

Property Value

string

Metadata

Additional metadata associated with the notification, stored as key-value pairs.

public Dictionary<string, object> Metadata { get; set; }

Property Value

Dictionary<string, object>

Source

The source of the notification, indicating where it originated from.

public NotificationSource Source { get; set; }

Property Value

NotificationSource

Title

The title of the notification.

public string Title { get; set; }

Property Value

string

Type

The type of the notification, specifying its category or purpose.

public NotificationType Type { get; set; }

Property Value

NotificationType

UpdatedBy

The user who last updated this notification.

[ForeignKey("UpdatedById")]
public virtual UserSqlModel UpdatedBy { get; set; }

Property Value

UserSqlModel

UpdatedById

The id of the user who last updated this notification.

public Guid? UpdatedById { get; set; }

Property Value

Guid?

UserGroupNotificationMappings

The collection of user group-notification mappings associated with this notification.

public virtual ICollection<UserGroupNotificationMappingSqlModel> UserGroupNotificationMappings { get; set; }

Property Value

ICollection<UserGroupNotificationMappingSqlModel>

UserNotificationMappings

The collection of user-notification mappings associated with this notification.

public virtual ICollection<UserNotificationMappingSqlModel> UserNotificationMappings { get; set; }

Property Value

ICollection<UserNotificationMappingSqlModel>