Show / Hide Table of Contents

Interface IDbContext

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

Properties

| Edit this page View Source

CurrentTransaction

Получить текущую транзакцию

Declaration
IDbContextTransaction? CurrentTransaction { get; }
Property Value
Type Description
IDbContextTransaction
| Edit this page View Source

NotificationLogs

История отправки

Declaration
DbSet<NotificationLog> NotificationLogs { get; set; }
Property Value
Type Description
DbSet<NotificationLog>

Methods

| Edit this page View Source

BeginTransactionAsync(CancellationToken)

Начать транзакцию

Declaration
Task<IDbContextTransaction> BeginTransactionAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task<IDbContextTransaction>
| Edit this page View Source

Entry<T>(T)

Получает объект для указанной сущности, позволяя управлять её состоянием и получать доступ к данным отслеживания.

Declaration
EntityEntry<T> Entry<T>(T entity) where T : class
Parameters
Type Name Description
T entity

Экземпляр сущности, для которого требуется получить entry.

Returns
Type Description
EntityEntry<T>
Type Parameters
Name Description
T

Тип сущности.

| Edit this page View Source

SaveChangesAsync(CancellationToken)

Сохранение изменений

Declaration
Task<int> SaveChangesAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task<int>
| Edit this page View Source

Set<T>()

Универсальный доступ к DbSet по типу сущности

Declaration
DbSet<T> Set<T>() where T : class
Returns
Type Description
DbSet<T>
Type Parameters
Name Description
T
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX