Show / Hide Table of Contents

Interface INotificationLogRepository

Namespace: NotifyHub.NotificationService.Application.Interfaces
Assembly: NotifyHub.NotificationService.Application.dll
Syntax
public interface INotificationLogRepository

Methods

| Edit this page View Source

AddAsync(NotificationLog, CancellationToken)

Добавить запись

Declaration
Task<NotificationLog> AddAsync(NotificationLog entity, CancellationToken cancellationToken)
Parameters
Type Name Description
NotificationLog entity
CancellationToken cancellationToken
Returns
Type Description
Task<NotificationLog>
| Edit this page View Source

Get(Expression<Func<NotificationLog, bool>>)

Получить записи по условию

Declaration
IQueryable<NotificationLog> Get(Expression<Func<NotificationLog, bool>> predicate)
Parameters
Type Name Description
Expression<Func<NotificationLog, bool>> predicate
Returns
Type Description
IQueryable<NotificationLog>
| Edit this page View Source

GetAll()

Получить все записи

Declaration
IQueryable<NotificationLog> GetAll()
Returns
Type Description
IQueryable<NotificationLog>
| Edit this page View Source

GetByIdAsync(Guid, CancellationToken)

Получить запись по Id

Declaration
Task<NotificationLog?> GetByIdAsync(Guid id, CancellationToken cancellationToken)
Parameters
Type Name Description
Guid id
CancellationToken cancellationToken
Returns
Type Description
Task<NotificationLog>
| Edit this page View Source

RemoveByIdAsync(Guid, CancellationToken)

Удалить запись по Id

Declaration
Task RemoveByIdAsync(Guid id, CancellationToken cancellationToken)
Parameters
Type Name Description
Guid id
CancellationToken cancellationToken
Returns
Type Description
Task
| Edit this page View Source

UpdateAsync(Guid, NotificationLog, CancellationToken)

Обновить запись по Id

Declaration
Task<NotificationLog> UpdateAsync(Guid id, NotificationLog entity, CancellationToken cancellationToken)
Parameters
Type Name Description
Guid id
NotificationLog entity
CancellationToken cancellationToken
Returns
Type Description
Task<NotificationLog>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX