Show / Hide Table of Contents

Class NotificationLogRepository

Inheritance
object
NotificationLogRepository
Implements
INotificationLogRepository
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NotifyHub.NotificationService.Persistence.Repositories
Assembly: NotifyHub.NotificationService.Persistence.dll
Syntax
public class NotificationLogRepository : INotificationLogRepository

Constructors

| Edit this page View Source

NotificationLogRepository(IDbContext)

Declaration
public NotificationLogRepository(IDbContext context)
Parameters
Type Name Description
IDbContext context

Methods

| Edit this page View Source

AddAsync(NotificationLog, CancellationToken)

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

Declaration
public 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
public 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
public IQueryable<NotificationLog> GetAll()
Returns
Type Description
IQueryable<NotificationLog>
| Edit this page View Source

GetByIdAsync(Guid, CancellationToken)

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

Declaration
public 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
public 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
public Task<NotificationLog> UpdateAsync(Guid id, NotificationLog entity, CancellationToken cancellationToken)
Parameters
Type Name Description
Guid id
NotificationLog entity
CancellationToken cancellationToken
Returns
Type Description
Task<NotificationLog>

Implements

INotificationLogRepository
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX