Skip to main content

UserNotification

Join entity that tracks per-user read state for notifications. Each row links one Notification to one ApplicationUser.

Fields

Field NameTypeDisplay Name
UserNotificationIdInt32User notification id
NotificationIdInt32Notification id
UserIdStringUser id
IsReadBooleanIs read
ReadAtNullable`1Read at

Relationships

  • Notification — belongs to one Notification
  • User — belongs to one ApplicationUser

Domain Methods

  • MarkAsRead() — sets IsRead = true and ReadAt = DateTime.UtcNow
  • MarkAsUnread() — sets IsRead = false and ReadAt = null

See Also